Skip to content

Commit 785768d

Browse files
committed
docker: add a cache dir writable by docker user
Now required by uv Refs: #3682
1 parent 89c141f commit 785768d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ services:
5656
- PGPASSWORD=password
5757
- PYTHONPATH=.
5858
- ITOU_LOG_LEVEL=DEBUG
59-
- ITOU_CACHE=/app/.cache
59+
- XDG_CACHE_HOME=/app/.cache
6060
- CELLAR_ADDON_HOST=minio:${MINIO_PORT_ON_DOCKER_HOST:-9000}
6161
- VIRTUAL_ENV=/app/.venv-docker
6262
- REDIS_URL=redis://redis:6379
@@ -73,6 +73,7 @@ services:
7373
volumes:
7474
# Mount the current directory into `/app` inside the running container.
7575
- .:/app
76+
- itou_cache:/app/.cache
7677
restart: unless-stopped
7778
ports:
7879
- "127.0.0.1:${DJANGO_PORT_ON_DOCKER_HOST:-8000}:8000"
@@ -86,3 +87,4 @@ services:
8687
volumes:
8788
postgres_data:
8889
itou_minio:
90+
itou_cache:

docker/dev/django/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ ENTRYPOINT ["/entrypoint.sh"]
5656
# Don't use root as default user
5757
USER $APP_USER
5858
WORKDIR $APP_DIR
59+
RUN mkdir -p .cache

0 commit comments

Comments
 (0)