Skip to content

Commit

Permalink
🔧(docker) set variable env used by vite to build standalone site
Browse files Browse the repository at this point in the history
In order to build correctly the stansalone site with vite, we have to
set the environment variable VITE_DIR_PROD and VITE_CDN_REPLACE_KEYWORD
  • Loading branch information
lunika authored and AntoLC committed Dec 21, 2023
1 parent 93e4f4f commit 0ede25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ COPY ./src/.prettierrc.js /app/
RUN yarn compile-translations && \
yarn workspace marsha run sass scss/_main.scss /app/marsha/static/css/main.css --style=compressed --load-path=../../node_modules && \
mkdir -p /app/marsha/static/css/fonts && cp node_modules/katex/dist/fonts/* /app/marsha/static/css/fonts && \
BUILD_PATH=/app/marsha/static/js/build/site/ DJANGO_STATIC_DIR=/app/marsha/static yarn workspace standalone_site run build && \
VITE_DIR_PROD=/app/marsha/static/js/build/site/ VITE_CDN_REPLACE_KEYWORD=/__static_base_url__/ yarn workspace standalone_site run build && \
yarn workspace marsha run build --mode=production --output-path /app/marsha/static/js/build/lti_site/

# ---- mails ----
Expand Down

0 comments on commit 0ede25b

Please sign in to comment.