Ravishankarsharma commited on
Commit
09e58aa
·
verified ·
1 Parent(s): 13dca6f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -1,20 +1,22 @@
1
  FROM python:3.10-slim
2
 
3
- # Set work directory
4
  WORKDIR /app
5
 
6
- # Install system dependencies (for ffmpeg required by Whisper)
7
- RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
8
-
9
- # Copy requirements and install
10
  COPY requirements.txt .
 
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy app files
14
  COPY . .
15
 
 
 
 
16
  # Expose port
17
  EXPOSE 7860
18
 
19
- # Run FastAPI app with uvicorn
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy requirements.txt first (better caching)
 
 
 
7
  COPY requirements.txt .
8
+
9
+ # Install Python dependencies
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Copy the entire app
13
  COPY . .
14
 
15
+ # Create uploads folder with proper permissions
16
+ RUN mkdir -p /app/uploads && chmod -R 777 /app/uploads
17
+
18
  # Expose port
19
  EXPOSE 7860
20
 
21
+ # Run the app with uvicorn
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]