properly support staticfiles in docker

This commit is contained in:
Tobias Brunner 2025-03-20 12:23:34 +01:00
parent e56447ece6
commit fb66d5666c
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ RUN uv sync --frozen \
&& mkdir -p /app/config/caddy /app/run/caddy /app/run/gunicorn \ && mkdir -p /app/config/caddy /app/run/caddy /app/run/gunicorn \
&& chgrp -R 0 /app \ && chgrp -R 0 /app \
&& chmod -R g=u /app \ && chmod -R g=u /app \
&& chmod g+w /app/config/caddy/Caddyfile && chmod g+w /app/config/caddy/Caddyfile \
# && SECRET_KEY= uv run src/manage.py collectstatic --noinput && SECRET_KEY= uv run src/manage.py collectstatic --noinput
CMD ["/usr/local/bin/run.sh"] CMD ["/usr/local/bin/run.sh"]

View file

@ -29,7 +29,7 @@
# Handle static files # Handle static files
handle /static/* { handle /static/* {
uri strip_prefix /static uri strip_prefix /static
root * /app/staticfiles root * /app/src/static.dist
file_server file_server
} }