Specify uwsgi listen port via ENV in Dockerfile

This commit is contained in:
Ben 2021-06-29 13:02:25 +02:00
parent fd10a957c9
commit 91bd738331
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -21,11 +21,11 @@ USER $WMN_UID
ARG PORT=3031 ARG PORT=3031
EXPOSE $PORT EXPOSE $PORT
ENV UWSGI_SOCKET=:$PORT
# opens a uwsgi socket at the given port, which is to be used by a reverse proxy # opens a uwsgi socket at the given port, which is to be used by a reverse proxy
CMD [ "uwsgi", "--die-on-term", \ CMD [ "uwsgi", "--die-on-term", \
"--need-plugin", "python3", \ "--need-plugin", "python3", \
"--socket", "0.0.0.0:${PORT}", \
"--wsgi-file", "/usr/src/wmn/wmn.py", \ "--wsgi-file", "/usr/src/wmn/wmn.py", \
"--master", \ "--master", \
"--processes", "1", \ "--processes", "1", \