nginx-app/Dockerfile

21 lines
544 B
Docker
Raw Normal View History

2016-12-12 11:04:16 +00:00
FROM cloudron/base:0.9.0
MAINTAINER Dennis Schwerdel <schwerdel@googlemail.com>
RUN mkdir -p /app/code
WORKDIR /app/code
ADD nginx.conf /app/code/nginx.conf.default
ADD page /app/code/page.default
ADD fpm.conf /etc/php/7.0/fpm/php-fpm.conf
ADD start.sh /app/code/start.sh
RUN mkdir /run/nginx && \
ln -s /dev/stderr /var/log/nginx/error.log && \
ln -s /dev/stdout /var/log/nginx/access.log && \
rmdir /var/lib/nginx && ln -s /tmp /var/lib/nginx
RUN chown -R cloudron:cloudron /app/code /run/nginx
CMD [ "/app/code/start.sh" ]