mmmay0722 commited on
Commit
131f4ed
·
1 Parent(s): 32b5a39

fix Permission denied: './logs'

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -24,5 +24,11 @@ RUN pip install --no-cache-dir --default-timeout=300 -r requirements.txt
24
  # Copy project files
25
  COPY . /app
26
 
 
 
 
 
 
 
27
  # Set to run app.py for Gradio interface
28
  CMD ["python", "app.py"]
 
24
  # Copy project files
25
  COPY . /app
26
 
27
+ # Create logs directory and set permissions
28
+ RUN mkdir -p /app/logs && \
29
+ mkdir -p /app/reports && \
30
+ chmod 755 /app/logs && \
31
+ chmod 755 /app/reports
32
+
33
  # Set to run app.py for Gradio interface
34
  CMD ["python", "app.py"]