Step one in getting to Alpine

This commit is contained in:
Kai Hendry
2015-10-01 21:54:48 +08:00
parent 4e53ff14f1
commit b00e31138f
18 changed files with 53 additions and 9397 deletions

View File

@@ -1,19 +1,27 @@
FROM base/archlinux:latest
MAINTAINER Kai Hendry <hendry@iki.fi>
RUN pacman --noconfirm -Sy archlinux-keyring && pacman -q -Syu --noconfirm nginx php php-fpm supervisor
FROM alpine:latest
MAINTAINER Kai Hendry <hendry@iki.fi>
RUN apk upgrade --update --available && \
apk add \
nginx \
php \
php-fpm \
php-json \
php-curl php-openssl ca-certificates \
bash \
vim \
supervisor \
&& rm -f /var/cache/apk/*
# /srv/http used to match with Archlinux's php.ini open_basedir default
ADD www /srv/http
ADD nginx.conf /etc/nginx/nginx.conf
ADD php-fpm.ini /etc/supervisor.d/php-fpm.ini
ADD nginx.ini /etc/supervisor.d/nginx.ini
# TODO setfacl?
RUN chown -R http:http /srv/http
RUN mkdir -p /srv/http/u
VOLUME /srv/http/u/
EXPOSE 80
# We use supervisord to keep the two processes we need going
CMD supervisord -n -c /etc/supervisord.conf