Env interpolation doesn't seem to work in the CMD

This commit is contained in:
Oliver 2021-08-18 20:52:14 +10:00
parent eeac561b9b
commit 52bdfe5465

View File

@ -100,7 +100,7 @@ WORKDIR ${INVENTREE_MNG_DIR}
ENTRYPOINT ["/bin/bash", "../docker/init.sh"]
# Launch the production server
CMD ["gunicorn", "-c", "../docker/gunicorn.conf.py", "InvenTree.wsgi", "-b", "${INVENTREE_WEB_ADDR}:${INVENTREE_WEB_PORT}", "--pythonpath", "${INVENTREE_MNG_DIR}"]
CMD gunicorn -c ./docker/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ./InvenTree
FROM base as dev