fix(): missing php extensions

pull/3/head
Hardware 2016-07-16 12:07:10 +02:00
parent 6170a65bec
commit 6f1bb34076
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
4 changed files with 22 additions and 1906 deletions

View File

@ -6,10 +6,11 @@ ENV GID=991 UID=991
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& export BUILD_DEPS="git" \
&& apk --no-cache add nginx \
&& apk --no-cache add ${BUILD_DEPS} \
nginx \
curl \
php7-phar@testing \
supervisor \
php7-phar@testing \
php7-fpm@testing \
php7-curl@testing \
php7-mbstring@testing \
@ -18,7 +19,8 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
php7-pdo_mysql@testing \
php7-gd@testing \
php7-dom@testing \
${BUILD_DEPS} \
php7-ctype@testing \
php7-session@testing \
&& cd /tmp \
&& ln -s /usr/bin/php7 /usr/bin/php \
&& curl -s http://getcomposer.org/installer | php \
@ -32,11 +34,8 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
&& rm -rf /flarum/.composer/cache/*
COPY nginx.conf /etc/nginx/nginx.conf
COPY php.ini /etc/php7/php.ini
COPY php-fpm.conf /etc/php7/php-fpm.conf
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY startup /usr/local/bin/startup
RUN chmod +x /usr/local/bin/startup
EXPOSE 8080
CMD ["/usr/bin/tini","--","startup"]
CMD ["/usr/bin/tini","--","supervisord","-c","/etc/supervisor/supervisord.conf"]

View File

@ -55,7 +55,6 @@ http {
error_log /var/log/nginx/error.log error;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}

1872
php.ini

File diff suppressed because it is too large Load Diff

10
startup
View File

@ -1,10 +0,0 @@
#!/bin/sh
# Create user and group
# addgroup -g ${GID} flarum && adduser -h /flarum -s /bin/sh -D -G flarum -u ${UID} flarum
# Set permissions
chown -R flarum:flarum /flarum /var/lib/nginx /tmp
# RUN !
supervisord -c /etc/supervisor/supervisord.conf