From 1b91baea7f80cf4d1d88fb91e653a7119db54438 Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Sat, 5 Oct 2024 12:41:01 +0100 Subject: [PATCH] fix: static dockerfile does not load packages for now --- Dockerfile | 1 - Dockerfile.static | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e2637e..6d4b846 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,6 @@ WORKDIR ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT} RUN mkdir -p /static_root && chown -R arches /static_root WORKDIR ${WEB_ROOT}/${ARCHES_PROJECT} RUN ../entrypoint.sh install_npm_components -RUN . ../ENV/bin/activate && python manage.py ENTRYPOINT ../entrypoint.sh CMD run_arches USER 1000 diff --git a/Dockerfile.static b/Dockerfile.static index 90ddb3c..f63fcee 100644 --- a/Dockerfile.static +++ b/Dockerfile.static @@ -77,7 +77,7 @@ ARG STATIC_ROOT=/static_root ARG ARCHES_PROJECT COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/media/* /usr/share/nginx/html/ COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/media/build/js/* /usr/share/nginx/html/js/ -COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/webpack-stats.json /usr/share/nginx/webpack-stats.json +COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/webpack/webpack-stats.json /usr/share/nginx/webpack-stats.json COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/.frontend-configuration-settings.json /usr/share/nginx/.frontend-configuration-settings.json COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/.tsconfig-paths.json /usr/share/nginx/.tsconfig-paths.json COPY --from=arches ${STATIC_ROOT} /usr/share/nginx/html/static