nginx-app/Dockerfile

31 lines
898 B
Docker
Raw Normal View History

2018-12-22 14:38:38 +00:00
FROM cloudron/base:1.0.0
2016-12-12 11:04:16 +00:00
MAINTAINER Dennis Schwerdel <schwerdel@googlemail.com>
RUN mkdir -p /app/code
WORKDIR /app/code
2018-12-22 14:38:38 +00:00
RUN wget http://nginx.org/keys/nginx_signing.key && \
apt-key add nginx_signing.key && \
rm nginx_signing.key && \
echo "deb http://nginx.org/packages/mainline/ubuntu/ $(lsb_release -cs) nginx" > /etc/apt/sources.list.d/nginx.list && \
apt update && \
apt install -y nginx
2016-12-12 11:04:16 +00:00
ADD nginx.conf /app/code/nginx.conf.default
2017-05-04 16:27:37 +00:00
ADD public /app/code/public.default
2020-06-16 14:16:50 +00:00
ADD fpm.conf /etc/php/7.2/fpm/php-fpm.conf
2016-12-12 11:04:16 +00:00
ADD start.sh /app/code/start.sh
RUN mkdir /run/nginx && \
2017-05-04 16:27:37 +00:00
rm /var/log/nginx/*.log && \
2016-12-12 11:04:16 +00:00
ln -s /dev/stderr /var/log/nginx/error.log && \
ln -s /dev/stdout /var/log/nginx/access.log && \
2018-12-22 14:38:38 +00:00
rmdir /var/cache/nginx && ln -s /tmp /var/cache/nginx
2016-12-12 11:04:16 +00:00
RUN chown -R cloudron:cloudron /app/code /run/nginx
2018-12-22 14:38:38 +00:00
WORKDIR /app/data
2016-12-12 11:04:16 +00:00
CMD [ "/app/code/start.sh" ]