Skier8402 commited on
Commit
4037039
·
verified ·
1 Parent(s): 039c47c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y \
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
 
 
 
 
14
  RUN pip3 install -r requirements.txt
15
 
16
  EXPOSE 8501
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
+ # Ensure logs folder exists and is writable by the container at runtime.
15
+ # Using permissive mode for simplicity; tighten permissions if you run as a non-root user.
16
+ RUN mkdir -p /app/src/logs && chmod -R a+rwx /app/src/logs
17
+
18
  RUN pip3 install -r requirements.txt
19
 
20
  EXPOSE 8501