From d029fda8964f404eb9af96756ad738653a41cb81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 7 Jan 2023 18:10:36 +0100 Subject: [PATCH] Collect static files in entrypoint.sh --- Dockerfile | 2 +- entrypoint.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6f7de02..9948b9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10-slim-bullseye -ENV VERSION_NUMBER 0.1.0-50-gd81dba7 +ENV VERSION_NUMBER 0.1.0-51-g9dead36 ENV PROD 1 RUN useradd --create-home --uid 1000 timetracker diff --git a/entrypoint.sh b/entrypoint.sh index ef9bbf0..14a6e39 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,6 +3,9 @@ echo "Apply database migrations" poetry run python src/web/manage.py migrate +echo "Collect static files" +poetry run python src/web/manage.py collectstatic + # Start server echo "Starting server" poetry run python src/web/manage.py runserver 0.0.0.0:8000 \ No newline at end of file