Skip to content

Commit

Permalink
fix(ci): missing env
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 30, 2024
1 parent c8775a9 commit 5e305d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ ARG DJANGO_RELEASE_NAME
ENV DJANGO_RELEASE_NAME=${DJANGO_RELEASE_NAME}

# need production configuration, but not all values are ready in env
RUN bash -c "DJANGO_SECRET_KEY=\$RANDOM DJANGO_CONFIGURATION=LocalProduction python manage.py collectstatic --no-input --verbosity 3"
RUN bash -c " \
DJANGO_SECRET_KEY=\$RANDOM \
DJANGO_CONFIGURATION=LocalProduction \
DJANGO_RECAPTCHA_SITE_KEY=___ \
DJANGO_RECAPTCHA_SECRET_KEY=___ \
python manage.py collectstatic --no-input --verbosity 3"

# given by webpack compiled results
COPY --from=webpack-stable /usr/src/build/webpack-stats.json ${DJANGO_BUILD_DIR}
Expand Down

0 comments on commit 5e305d2

Please sign in to comment.