Set WORKDIR to /app/src before setting CMD.

This commit is contained in:
Víðir Valberg Guðmundsson 2021-03-01 17:35:43 +01:00
parent fb00df7274
commit cbdbd7f7cf

View file

@ -41,4 +41,5 @@ ARG BUILD
ENV BUILD ${BUILD} ENV BUILD ${BUILD}
ENTRYPOINT ["./entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"]
WORKDIR /app/src
CMD ["uvicorn", "project.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "3", "--lifespan", "off"] CMD ["uvicorn", "project.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "3", "--lifespan", "off"]