sloneckity commited on
Commit
2ccfb95
·
1 Parent(s): 30d5634

Fix: Add directory permissions to Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -12,6 +12,10 @@ COPY requirements.txt .
12
  # -r requirements.txt: Specifies the file containing the list of packages to install.
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
 
 
15
  # Copy the rest of the application code into the container at /app
16
  # This includes app.py, nemaquant.py, templates/, static/, etc.
17
  COPY . .
 
12
  # -r requirements.txt: Specifies the file containing the list of packages to install.
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Create directories for uploads and results, and set permissions
16
+ RUN mkdir -p /app/uploads /app/results && \
17
+ chmod 777 /app/uploads /app/results
18
+
19
  # Copy the rest of the application code into the container at /app
20
  # This includes app.py, nemaquant.py, templates/, static/, etc.
21
  COPY . .