fix(): missing php extensions
parent
6170a65bec
commit
6f1bb34076
33
Dockerfile
33
Dockerfile
|
@ -6,19 +6,21 @@ 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 \
|
||||
curl \
|
||||
php7-phar@testing \
|
||||
supervisor \
|
||||
php7-fpm@testing \
|
||||
php7-curl@testing \
|
||||
php7-mbstring@testing \
|
||||
php7-openssl@testing \
|
||||
php7-json@testing \
|
||||
php7-pdo_mysql@testing \
|
||||
php7-gd@testing \
|
||||
php7-dom@testing \
|
||||
${BUILD_DEPS} \
|
||||
&& apk --no-cache add ${BUILD_DEPS} \
|
||||
nginx \
|
||||
curl \
|
||||
supervisor \
|
||||
php7-phar@testing \
|
||||
php7-fpm@testing \
|
||||
php7-curl@testing \
|
||||
php7-mbstring@testing \
|
||||
php7-openssl@testing \
|
||||
php7-json@testing \
|
||||
php7-pdo_mysql@testing \
|
||||
php7-gd@testing \
|
||||
php7-dom@testing \
|
||||
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"]
|
||||
|
|
13
nginx.conf
13
nginx.conf
|
@ -55,17 +55,16 @@ http {
|
|||
error_log /var/log/nginx/error.log error;
|
||||
charset utf-8;
|
||||
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location /api {
|
||||
try_files $uri $uri/ /api.php?$query_string;
|
||||
location /api {
|
||||
try_files $uri $uri/ /api.php?$query_string;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
try_files $uri $uri/ /admin.php?$query_string;
|
||||
location /admin {
|
||||
try_files $uri $uri/ /admin.php?$query_string;
|
||||
}
|
||||
|
||||
location /flarum {
|
||||
|
|
Loading…
Reference in New Issue