2019-05-11 18:29:50 +00:00
|
|
|
FROM alpine:3.9
|
2018-09-11 11:17:47 +00:00
|
|
|
|
2019-05-11 18:29:50 +00:00
|
|
|
ENV S6VERSION=v1.22.1.0
|
2015-11-08 18:58:38 +00:00
|
|
|
|
|
|
|
# Install packages
|
2018-09-11 11:17:47 +00:00
|
|
|
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
|
|
|
|
2015-11-08 22:21:16 +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
|
2018-09-11 11:17:47 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/init"]
|