mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
20 lines
526 B
Docker
20 lines
526 B
Docker
FROM base/archlinux:latest
|
|
MAINTAINER Kai Hendry <hendry@iki.fi>
|
|
RUN pacman -Syu --noconfirm nginx php php-fpm supervisor
|
|
|
|
# /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
|
|
|
|
VOLUME /srv/http/u/
|
|
|
|
EXPOSE 80
|
|
|
|
# We use supervisord to keep the two processes we need going
|
|
CMD supervisord -n -c /etc/supervisord.conf
|