diff --git a/Dockerfile b/Dockerfile index fcee5d3..710eefd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ RUN apk add --update --no-cache coreutils supervisor acl nginx make curl bash \ && mkdir /run/nginx && mkdir /var/www/app && mkdir /run/php RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community \ - php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl php7-zlib \ - php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session composer \ - php7-mbstring php7-gd php7-tokenizer php7-xmlwriter php7-fileinfo php7-pdo php7-pdo_mysql + php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl php7-zlib composer \ + php7-xml php7-phar php7-intl php7-dom php7-simplexml php7-xmlreader php7-ctype php7-session \ + php7-mbstring php7-gd php7-tokenizer php7-xmlwriter php7-fileinfo php7-pdo php7-pdo_mysql \ + php7-pecl-xdebug php7-pdo_sqlite COPY src/etc /etc COPY src/entrypoint.sh / @@ -15,6 +16,8 @@ RUN chmod +x /entrypoint.sh RUN ln -sf /dev/stdout /var/log/nginx/app_access.log \ && ln -sf /dev/stderr /var/log/nginx/app_error.log +WORKDIR /var/www/app + EXPOSE 80 ENTRYPOINT ["/entrypoint.sh"] diff --git a/src/etc/supervisor.d/services.ini b/src/etc/supervisor.d/services.ini index a117fa6..f7e4aaf 100644 --- a/src/etc/supervisor.d/services.ini +++ b/src/etc/supervisor.d/services.ini @@ -1,5 +1,6 @@ [supervisord] logfile=/var/log/supervisord.log +pidfile=/var/run/supervisord.pid nodaemon=false [program:nginx]