Joffrey Thomas commited on
Commit
759c7e1
·
1 Parent(s): 2492fbe

docker modif

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -16,7 +16,10 @@ COPY --chown=appuser:appgroup requirements.txt .
16
 
17
  # Create the cache directory and set permissions before switching user
18
  # This ensures the directory exists and is writable by appuser
19
- RUN mkdir -p /app/.uv_cache && chown -R appuser:appgroup /app/.uv_cache
 
 
 
20
 
21
  # Switch to the non-root user
22
  USER appuser
 
16
 
17
  # Create the cache directory and set permissions before switching user
18
  # This ensures the directory exists and is writable by appuser
19
+ RUN mkdir -p ${UV_CACHE_DIR} && chown -R appuser:appgroup ${UV_CACHE_DIR}
20
+
21
+ # Grant appuser ownership of /app to allow creating .venv
22
+ RUN chown appuser:appgroup /app
23
 
24
  # Switch to the non-root user
25
  USER appuser