muzammil-eds commited on
Commit
bb0a58d
·
1 Parent(s): 2200899

Files added

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  # Use an official Python runtime as the base image
2
- FROM python:3.9-slim
 
3
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
@@ -7,17 +8,18 @@ WORKDIR /app
7
  # Set Hugging Face cache directory to /tmp/.cache (which should be writable)
8
  ENV HF_HOME="/tmp/.cache"
9
 
 
10
  # Install FFmpeg
11
  RUN apt-get update && apt-get install -y ffmpeg
12
 
13
  # Copy the current directory contents into the container at /app
14
  COPY . /app
15
 
16
- # Install any required Python dependencies
17
- RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Expose the port Flask will run on
20
  EXPOSE 7860
21
 
22
- # Command to run Gunicorn in production
23
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
1
  # Use an official Python runtime as the base image
2
+ FROM python:3.12.3
3
+ LABEL authors="muzammil"
4
 
5
  # Set the working directory inside the container
6
  WORKDIR /app
 
8
  # Set Hugging Face cache directory to /tmp/.cache (which should be writable)
9
  ENV HF_HOME="/tmp/.cache"
10
 
11
+
12
  # Install FFmpeg
13
  RUN apt-get update && apt-get install -y ffmpeg
14
 
15
  # Copy the current directory contents into the container at /app
16
  COPY . /app
17
 
18
+ # Install any required dependencies
19
+ RUN pip install -r requirements.txt
20
 
21
  # Expose the port Flask will run on
22
  EXPOSE 7860
23
 
24
+ # Command to run the Flask app
25
+ CMD ["python", "app.py"]