Fixed nginx crashes and Email
This commit is contained in:
@@ -2,17 +2,16 @@ FROM cloudron/base:0.10.0
|
||||
MAINTAINER Authors name <support@cloudron.io>
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
RUN mkdir -p /app/data
|
||||
RUN mkdir -p /app/data/templates
|
||||
|
||||
WORKDIR /app/code
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
# Nginx
|
||||
# nginx
|
||||
RUN rm /etc/nginx/sites-enabled/*
|
||||
ADD nginx_matrix.conf /etc/nginx/sites-enabled/
|
||||
RUN rm -rf /var/lib/nginx && ln -sf /app/data/nginx /var/lib/nginx
|
||||
RUN mv /var/lib/nginx /app/data/nginx && ln -sf /app/data/nginx /var/lib/nginx
|
||||
RUN rm -rf /var/log/nginx && ln -sf /run/nginx_log /var/log/nginx
|
||||
|
||||
# TURN
|
||||
@@ -40,7 +39,7 @@ RUN pip install https://github.com/matrix-org/synapse/tarball/master
|
||||
# copy index.html
|
||||
COPY index.html /app/code
|
||||
|
||||
RUN chown -R www-data.www-data /app/code
|
||||
RUN chown -R www-data.www-data /app/code /app/data
|
||||
|
||||
ADD start_matrix.sh /app/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user