Skip to content

Commit 9540951

Browse files
committed
PPHA-369: Collect static assets into STATIC_ROOT in prod
1 parent e784e31 commit 9540951

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ COPY --chown=${USER}:${USER} ./lung_cancer_screening /app/lung_cancer_screening
9999
COPY --from=asset_builder --chown=${USER}:${USER} /app/lung_cancer_screening/assets/compiled /app/lung_cancer_screening/assets/compiled
100100
COPY --chown=${USER}:${USER} manage.py ./
101101

102+
RUN python ./manage.py collectstatic --noinput
103+
102104
EXPOSE 8000
103105

104106
CMD ["/app/.venv/bin/gunicorn", "--bind", "0.0.0.0:8000", "lung_cancer_screening.wsgi"]

0 commit comments

Comments
 (0)