zbotta commited on
Commit
49fbdfe
·
1 Parent(s): a36ddac

log permission error

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -54,6 +54,10 @@ COPY --from=fetcher src/entry_point.sh /reportAgent/entry_point.sh
54
  # Copy your app code (root/app -> /app)
55
  COPY --from=fetcher src/app/ /reportAgent/app/
56
 
 
 
 
 
57
  RUN chmod +x /reportAgent/entry_point.sh && chown -R appuser:appuser /reportAgent /reportAgent/entry_point.sh /home/appuser
58
  RUN chown -R appuser:appuser /reportAgent/ /home/appuser
59
 
 
54
  # Copy your app code (root/app -> /app)
55
  COPY --from=fetcher src/app/ /reportAgent/app/
56
 
57
+ # Create & own runtime dirs the app/entrypoint will use
58
+ RUN mkdir -p /home/appuser/.cache/huggingface /reportAgent/app/logs \
59
+ && chown -R appuser:appuser /home/appuser /reportAgent/app/logs/
60
+
61
  RUN chmod +x /reportAgent/entry_point.sh && chown -R appuser:appuser /reportAgent /reportAgent/entry_point.sh /home/appuser
62
  RUN chown -R appuser:appuser /reportAgent/ /home/appuser
63