diff --git a/contrib/container/Dockerfile b/contrib/container/Dockerfile index 29452b9c9a..b943e52711 100644 --- a/contrib/container/Dockerfile +++ b/contrib/container/Dockerfile @@ -149,7 +149,7 @@ COPY --from=builder_stage ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web ${IN COPY --from=builder_stage /root/.local /root/.local # Launch the production server -CMD ["sh", "-c", "exec gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ${INVENTREE_BACKEND_DIR}/InvenTree"] +CMD ["sh", "-c", "exec gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b ${INVENTREE_WEB_ADDR}:${INVENTREE_WEB_PORT} --chdir ${INVENTREE_BACKEND_DIR}/InvenTree"] FROM builder_stage AS dev