fix(): missing php extensions
parent
6170a65bec
commit
6f1bb34076
13
Dockerfile
13
Dockerfile
|
@ -6,10 +6,11 @@ ENV GID=991 UID=991
|
||||||
|
|
||||||
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||||
&& export BUILD_DEPS="git" \
|
&& export BUILD_DEPS="git" \
|
||||||
&& apk --no-cache add nginx \
|
&& apk --no-cache add ${BUILD_DEPS} \
|
||||||
|
nginx \
|
||||||
curl \
|
curl \
|
||||||
php7-phar@testing \
|
|
||||||
supervisor \
|
supervisor \
|
||||||
|
php7-phar@testing \
|
||||||
php7-fpm@testing \
|
php7-fpm@testing \
|
||||||
php7-curl@testing \
|
php7-curl@testing \
|
||||||
php7-mbstring@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-pdo_mysql@testing \
|
||||||
php7-gd@testing \
|
php7-gd@testing \
|
||||||
php7-dom@testing \
|
php7-dom@testing \
|
||||||
${BUILD_DEPS} \
|
php7-ctype@testing \
|
||||||
|
php7-session@testing \
|
||||||
&& cd /tmp \
|
&& cd /tmp \
|
||||||
&& ln -s /usr/bin/php7 /usr/bin/php \
|
&& ln -s /usr/bin/php7 /usr/bin/php \
|
||||||
&& curl -s http://getcomposer.org/installer | 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/*
|
&& rm -rf /flarum/.composer/cache/*
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY php.ini /etc/php7/php.ini
|
|
||||||
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
||||||
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
||||||
COPY startup /usr/local/bin/startup
|
|
||||||
RUN chmod +x /usr/local/bin/startup
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["/usr/bin/tini","--","startup"]
|
CMD ["/usr/bin/tini","--","supervisord","-c","/etc/supervisor/supervisord.conf"]
|
||||||
|
|
|
@ -55,7 +55,6 @@ http {
|
||||||
error_log /var/log/nginx/error.log error;
|
error_log /var/log/nginx/error.log error;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue