mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-26 22:56:57 -05:00
Step one in getting to Alpine
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user