Skip to content

Commit

Permalink
Fix CMD for production docker image (#6960)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Apr 5, 2024
1 parent 3bb90d6 commit cdeaa81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/container/Dockerfile
Expand Up @@ -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

Expand Down

0 comments on commit cdeaa81

Please sign in to comment.