From a30e7cbdbf4b324eb2e4d7f94fe6a14d0c0d0f64 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 13 Apr 2024 11:55:15 +0200 Subject: [PATCH] fix: change static paths --- Dockerfile | 5 +++-- docker/build.cfg | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff2659b..b8acc76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,9 @@ RUN apt update RUN apt install gettext -y COPY . /app WORKDIR /app -RUN mkdir /app/static -RUN mkdir /app/media +RUN mkdir /app/data +RUN mkdir /app/data/static +RUN mkdir /app/data/media RUN pip install -e . # Without the -e the library static folder will not be copied by collectstatic! RUN nf collectstatic --noinput diff --git a/docker/build.cfg b/docker/build.cfg index df9a20f..70b29f7 100644 --- a/docker/build.cfg +++ b/docker/build.cfg @@ -1,5 +1,5 @@ [django] secret="NOTREALSECRET" [locations] -static=/notfellchen/static -media=/notfellchen/media \ No newline at end of file +static=/app/data/static +media=/app/data//media \ No newline at end of file