22 lines
582 B
Docker
22 lines
582 B
Docker
FROM cloudron/base:0.10.0
|
|
MAINTAINER Dennis Schwerdel <schwerdel@googlemail.com>
|
|
|
|
RUN mkdir -p /app/code
|
|
WORKDIR /app/code
|
|
|
|
ADD nginx.conf /app/code/nginx.conf.default
|
|
ADD public /app/code/public.default
|
|
ADD fpm.conf /etc/php/7.0/fpm/php-fpm.conf
|
|
ADD start.sh /app/code/start.sh
|
|
|
|
RUN mkdir /run/nginx && \
|
|
rm /var/log/nginx/*.log && \
|
|
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" ]
|
|
|