Specify uwsgi listen port via ENV in Dockerfile
This commit is contained in:
parent
fd10a957c9
commit
91bd738331
|
@ -21,11 +21,11 @@ USER $WMN_UID
|
|||
|
||||
ARG PORT=3031
|
||||
EXPOSE $PORT
|
||||
ENV UWSGI_SOCKET=:$PORT
|
||||
|
||||
# opens a uwsgi socket at the given port, which is to be used by a reverse proxy
|
||||
CMD [ "uwsgi", "--die-on-term", \
|
||||
"--need-plugin", "python3", \
|
||||
"--socket", "0.0.0.0:${PORT}", \
|
||||
"--wsgi-file", "/usr/src/wmn/wmn.py", \
|
||||
"--master", \
|
||||
"--processes", "1", \
|
||||
|
|
Loading…
Reference in a new issue