Skip to content

Commit

Permalink
fix: add additional frontend config files
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 4, 2024
1 parent 9003cd1 commit 1b5b7f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile.static
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ 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}/${ARCHES_PROJECT}/webpack-stats.json /usr/share/nginx/webpack-stats.json
COPY --from=arches ${WEB_ROOT}/${ARCHES_PROJECT}/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
#RUN mv /usr/share/nginx/html/static/* /usr/share/nginx/html

Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.static-py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ FROM $ARCHES_STATIC_IMAGE as arches_static
FROM $ARCHES_DYNAMIC_IMAGE as arches
ARG STATIC_ROOT=/static_root

COPY --from=arches_static /usr/share/nginx/webpack-stats.json ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/webpack/webpack-stats.json
COPY --from=arches_static /usr/share/nginx/webpack-stats.json ${WEB_ROOT}/${ARCHES_PROJECT}/webpack/webpack-stats.json
COPY --from=arches_static /usr/share/nginx/.frontend-configuration-settings.json ${WEB_ROOT}/${ARCHES_PROJECT}/.frontend-configuration-settings.json
COPY --from=arches_static /usr/share/nginx/.tsconfig-paths.json ${WEB_ROOT}/${ARCHES_PROJECT}/.tsconfig-paths.json
RUN mkdir -p ${STATIC_ROOT}/CACHE
# COPY --from=arches_static /usr/share/nginx/html/static/CACHE/manifest.json ${STATIC_ROOT}/CACHE/manifest.json
COPY --from=arches_static /usr/share/nginx/html ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/media/build
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:

arches:
restart: unless-stopped
user: root # frontend configuration
entrypoint: ["../entrypoint.sh"]
build:
context: ${ARCHES_PROJECT_ROOT}.
Expand Down

0 comments on commit 1b5b7f3

Please sign in to comment.