Fix CMD for production docker image (#6960)

This commit is contained in:
Oliver 2024-04-05 11:30:45 +11:00 committed by GitHub
parent 3bb90d6894
commit cdeaa81295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,11 +126,11 @@ COPY --from=prebuild /root/.local /root/.local
# Copy source code
COPY src/backend/InvenTree ${INVENTREE_HOME}/src/backend/InvenTree
COPY --from=frontend ${INVENTREE_HOME}/src/backend/InvenTree/web/static/web ./src/backend/InvenTree/web/static/web
COPY src/backend/InvenTree ${INVENTREE_BACKEND_DIR}/InvenTree
COPY --from=frontend ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web
# Launch the production server
CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ./InvenTree
CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ${INVENTREE_BACKEND_DIR}/InvenTree
FROM inventree_base AS dev