tannuiscoding commited on
Commit
0c0093f
·
1 Parent(s): 0ae4642

fixed upload error

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -1,18 +1,13 @@
1
- # Use Python base image
2
  FROM python:3.10-slim
3
 
4
- # Set work directory
5
  WORKDIR /app
6
 
7
- # Install dependencies
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy the rest of your code
12
  COPY . .
13
 
14
- # Expose the port Hugging Face expects
15
- EXPOSE 7860
16
 
17
- # Run your Flask app with gunicorn
18
  CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
10
+ # Create uploads folder with write permissions
11
+ RUN mkdir -p uploads && chmod -R 777 uploads
12
 
 
13
  CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]