Skip to content

Commit

Permalink
nginx in
Browse files Browse the repository at this point in the history
  • Loading branch information
lzy7071 committed Jun 5, 2020
1 parent 517716c commit eb56ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -46,6 +46,6 @@ RUN apt-get purge -y --autoremove git ca-certificates \
&& rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; \
fi

CMD gunicorn --bind 127.0.0.1:80 "datanator_rest_api.core:application"
# && sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/nginx.conf \
# && nginx -g 'daemon off;'
CMD gunicorn --bind 127.0.0.1:8001 "datanator_rest_api.core:application" --daemon \
&& sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/nginx.conf \
&& nginx -g 'daemon off;'

0 comments on commit eb56ffd

Please sign in to comment.