From cbd5ac95803d050a7b2b94a5b83c52360b8dc722 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 15 Oct 2022 22:41:41 +0100 Subject: [PATCH] Change static directory --- docker/nginx/conf.d/default.conf | 2 +- docker/prod/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf index f3ef7d5..064e531 100644 --- a/docker/nginx/conf.d/default.conf +++ b/docker/nginx/conf.d/default.conf @@ -9,7 +9,7 @@ server { location = /favicon.ico { access_log off; log_not_found off; } location /static/ { - root /code/core/; + root /conf; } location / { diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index ad78995..9381f67 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -2,8 +2,8 @@ FROM python:3 RUN useradd -d /code xf -RUN mkdir /code -RUN chown xf:xf /code +RUN mkdir -p /code +RUN chown -R xf:xf /code RUN mkdir /conf RUN chown xf:xf /conf