alpine-nginx-php/Dockerfile

26 lines
488 B
Text
Raw Normal View History

FROM alpine:3.9
ENV S6VERSION=v1.22.1.0
2015-11-08 18:58:38 +00:00
# Install packages
RUN set -ex \
&& apk --no-cache add \
nginx \
bash \
curl \
git \
php-fpm \
&& curl -sSfL "https://github.com/just-containers/s6-overlay/releases/download/${S6VERSION}/s6-overlay-amd64.tar.gz" | tar -xzv -C / \
&& rm -Rf /var/www/*
2015-11-08 18:58:38 +00:00
# Copy configuration files to root
COPY rootfs /
2015-11-08 18:58:38 +00:00
# Fix permissions
RUN chown -Rf nginx:www-data /var/www/
WORKDIR /var/www
EXPOSE 80 443
ENTRYPOINT ["/init"]