From 818cc3cb23869770671e1cdf25cc5cc9c73bc519 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Tue, 8 May 2018 10:41:58 +0200 Subject: [PATCH] run collectstatic in Dockerfile --- castellum_core/Dockerfile | 2 ++ docker-compose.yml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/castellum_core/Dockerfile b/castellum_core/Dockerfile index 7d8f00513..932314e67 100644 --- a/castellum_core/Dockerfile +++ b/castellum_core/Dockerfile @@ -12,3 +12,5 @@ RUN pip3 install -e . RUN npm install RUN apk del $BUILDPKGS + +RUN python3 castellum_core/manage.py collectstatic --no-input diff --git a/docker-compose.yml b/docker-compose.yml index 5acb24b00..846d262a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,6 @@ services: sh -c " python3 castellum_core/manage.py migrate && python3 castellum_core/manage.py shell -c \"from castellum_auth.models import User; User.objects.filter(username='admin') or User.objects.create_superuser('admin', 'admin@example.com', '123')\" && - python3 castellum_core/manage.py collectstatic --no-input && uwsgi uwsgi.ini" volumes: - static-content:/code/castellum_core/collectstatic -- GitLab