From 15e28502c10b06b7342621c51b81ec1d6a3f1ba1 Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Sun, 5 Jul 2026 13:54:52 +0100 Subject: [PATCH] collectstatic all the time --- dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockerfile b/dockerfile index a98b496..f820b46 100644 --- a/dockerfile +++ b/dockerfile @@ -24,5 +24,7 @@ RUN pip install --cache-dir=/opt/hostedtoolcache/pip -r requirements.txt # Copy the rest of your application code (Changes frequently, invalidates subsequent cache) COPY . ./ +RUN python django_code/manage.py collectstatic --noinput + # CMD is the command run when the container starts CMD [ "python","django_code/manage.py","runserver","0.0.0.0:8000" ]