From 6b959bb9ea60be68ecaa534fc60e4fc49ace1c9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20W=C3=B3jcik?= Date: Mon, 18 Aug 2025 22:14:42 +0200 Subject: [PATCH] BTHLABS-49: WIP --- services/backend/Dockerfile | 4 +++- .../backend/ops/bin/entrypoint-deployment.sh | 23 ++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/services/backend/Dockerfile b/services/backend/Dockerfile index 6d7f300..2ab36d9 100644 --- a/services/backend/Dockerfile +++ b/services/backend/Dockerfile @@ -43,13 +43,15 @@ ARG APP_USER_GID ARG IMAGE_TAG ENV HOTPOCKET_BACKEND_IMAGE_TAG=${IMAGE_TAG} +ENV PYTHONPATH="/srv/local" COPY --from=deployment-build /srv/app /srv/app COPY --from=deployment-build /srv/packages /srv/packages COPY --from=deployment-build /srv/venv /srv/venv COPY --chown=$APP_USER_UID:$APP_USER_GID backend/ops/bin/*.sh /srv/bin/ COPY --chown=$APP_USER_UID:$APP_USER_GID backend/ops/deployment/gunicorn.conf.py backend/ops/deployment/gunicorn.logging.conf /srv/lib/ -RUN chown -R $APP_USER_UID:$APP_USER_GID /srv +RUN mkdir /srv/entrypoint.d /srv/local && \ + chown -R $APP_USER_UID:$APP_USER_GID /srv USER root diff --git a/services/backend/ops/bin/entrypoint-deployment.sh b/services/backend/ops/bin/entrypoint-deployment.sh index 27ec51b..f7aaf8b 100755 --- a/services/backend/ops/bin/entrypoint-deployment.sh +++ b/services/backend/ops/bin/entrypoint-deployment.sh @@ -16,21 +16,38 @@ cat <