From a0d77b87ce3d13bffd41a7087e087226fbbfcbbf Mon Sep 17 00:00:00 2001 From: Emidio Valeretto Date: Sun, 14 Jun 2026 16:45:22 +0100 Subject: [PATCH] fix: serve static files in production via deploy.sh --- Dockerfile | 2 +- deploy.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 deploy.sh diff --git a/Dockerfile b/Dockerfile index e4c34c1..7b077da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,4 @@ RUN mkdir -p staticfiles EXPOSE 8000 -CMD gunicorn core.wsgi:application --bind 0.0.0.0:$PORT +CMD ["sh", "./deploy.sh"] diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..414d26e --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +python manage.py collectstatic --noinput +exec gunicorn core.wsgi:application --bind 0.0.0.0:$PORT \ No newline at end of file