rudra0410hf commited on
Commit
e64be3a
·
verified ·
1 Parent(s): c0fb7db

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -7,10 +7,13 @@ WORKDIR /app
7
  # Copy project files to the container
8
  COPY . /app
9
 
 
 
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Expose the port the app runs on
14
  EXPOSE 7860
15
 
16
  # Start the app using Gunicorn
 
7
  # Copy project files to the container
8
  COPY . /app
9
 
10
+ # Ensure the upload directory exists and set correct permissions
11
+ RUN mkdir -p static/uploads && chmod -R 777 static/uploads
12
+
13
  # Install dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Expose the app port
17
  EXPOSE 7860
18
 
19
  # Start the app using Gunicorn