From cceaf25c6beda3d45c0f8656cff0356b6505f92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 1 Mar 2021 17:49:37 +0100 Subject: [PATCH] Uvicorn has --app-dir, which might do the trick. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f4fb162..e697ab7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,11 +35,11 @@ RUN poetry export -f requirements.txt $(test "$DJANGO_ENV" != production && echo RUN groupadd -g 1000 www RUN useradd -u 1000 -ms /bin/bash -g www www COPY --chown=www:www ./ /app/ -RUN mkdir /app/static && chown www:www /app/static +RUN mkdir /app/src/static && chown www:www /app/src/static ARG BUILD ENV BUILD ${BUILD} 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", "--app-dir", "/app/src"]