21 lines
544 B
Docker
21 lines
544 B
Docker
|
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" ]
|
||
|
|