properly support staticfiles in docker
This commit is contained in:
parent
e56447ece6
commit
fb66d5666c
2 changed files with 3 additions and 3 deletions
|
@ -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"]
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue