nginx-php/Dockerfile

24 lines
829 B
Docker
Raw Normal View History

2020-11-08 23:22:12 +01:00
FROM alpine:latest
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 \
2020-11-18 19:07:07 +01:00
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
2020-11-08 23:22:12 +01:00
2020-11-21 10:46:03 +01:00
COPY src/etc /etc
2020-11-08 23:22:12 +01:00
COPY src/entrypoint.sh /
2020-11-21 10:46:03 +01:00
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
2020-11-08 23:22:12 +01:00
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]
2020-10-09 23:11:32 +02:00