2017-05-04 16:27:37 +00:00
|
|
|
FROM cloudron/base:0.10.0
|
2016-12-12 11:04:16 +00:00
|
|
|
MAINTAINER Dennis Schwerdel <schwerdel@googlemail.com>
|
|
|
|
|
|
|
|
RUN mkdir -p /app/code
|
|
|
|
WORKDIR /app/code
|
|
|
|
|
|
|
|
ADD nginx.conf /app/code/nginx.conf.default
|
2017-05-04 16:27:37 +00:00
|
|
|
ADD public /app/code/public.default
|
2016-12-12 11:04:16 +00:00
|
|
|
ADD fpm.conf /etc/php/7.0/fpm/php-fpm.conf
|
|
|
|
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 && \
|
|
|
|
rmdir /var/lib/nginx && ln -s /tmp /var/lib/nginx
|
|
|
|
|
|
|
|
RUN chown -R cloudron:cloudron /app/code /run/nginx
|
|
|
|
|
|
|
|
CMD [ "/app/code/start.sh" ]
|
|
|
|
|