gitea_webhooks/Dockerfile

33 lines
770 B
Docker
Raw Normal View History

2021-01-12 21:53:49 +00:00
FROM alpine:latest
MAINTAINER Bandie <bandie@chaospott.de>
2021-01-12 23:19:11 +00:00
RUN apk add --no-cache php nginx php-fpm php-json msmtp tzdata
2021-01-12 21:53:49 +00:00
RUN adduser -D -g 'www' www
RUN mkdir /www
COPY ./www/* /www/
RUN chown -R www:www /var/lib/nginx
RUN chown -R www:www /www
COPY configs/nginx.conf /etc/nginx/nginx.conf
2021-01-12 23:03:32 +00:00
RUN rm -f /etc/nginx/conf.d/*
2021-01-12 21:53:49 +00:00
COPY configs/envs/php7.sh /etc/profile.d/php7.sh
RUN chown www:www /var/log/php7
RUN chown www:www /var/lib/nginx/logs/
RUN cp /usr/share/zoneinfo/UTC /etc/localtime
RUN echo "UTC" > /etc/timezone
RUN sed -i "s|;*date.timezone =.*|date.timezone = UTC|i" /etc/php7/php.ini
COPY configs/msmtprc /etc/msmtprc
COPY configs/aliases /etc/aliases
2021-01-12 22:01:00 +00:00
COPY configs/hosts /etc/hosts_append
2021-01-12 21:53:49 +00:00
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD /start.sh