changes in nginx config

This commit is contained in:
Andreas Neue 2018-08-01 15:20:37 +02:00
parent 3d7394d0c7
commit 4b93c28e1a
3 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@ ENV FFMPEG_VERSION 3.4.2
EXPOSE 1935
EXPOSE 80
RUN mkdir -p /opt/data && mkdir /www
RUN mkdir -p /opt/data && mkdir -p /opt/nginx/conf && mkdir /www
# Build dependencies.
@ -68,7 +68,7 @@ RUN cd /tmp/nginx-${NGINX_VERSION} && \
--with-debug && \
cd /tmp/nginx-${NGINX_VERSION} && make && make install
ADD nginx.conf /opt/nginx/nginx.conf
ADD static /www/static
VOLUME /opt/nginx/conf
VOLUME /www/static
CMD ["/opt/nginx/sbin/nginx"]
CMD ["/opt/nginx/sbin/nginx", "-c", "/opt/nginx/conf/nginx.conf"]