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