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" ]