mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
29 lines
595 B
Docker
29 lines
595 B
Docker
FROM alpine:latest
|
|
|
|
MAINTAINER Kai Hendry <hendry+greptweet@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/* \
|
|
&& chmod -R 755 /var/lib/nginx
|
|
|
|
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
|
|
|
|
RUN mkdir -p /srv/http/u
|
|
RUN chmod -R 777 /srv/http/u
|
|
|
|
EXPOSE 80
|
|
|
|
CMD supervisord -n -c /etc/supervisord.conf
|