Siam2315 commited on
Commit
0718c19
·
verified ·
1 Parent(s): 2d64101

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python image
2
+ FROM python:3.8-slim
3
+
4
+ # Set working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements and install them
8
+ COPY requirements.txt .
9
+ RUN apt-get update && apt-get install -y ffmpeg && pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy the rest of your app
12
+ COPY . .
13
+
14
+ # Set environment variables for Flask
15
+ ENV FLASK_APP=app.py
16
+ ENV FLASK_RUN_HOST=0.0.0.0
17
+
18
+ # Expose port 7860 (used by Hugging Face Spaces)
19
+ EXPOSE 7860
20
+
21
+ # Run the app
22
+ CMD ["flask", "run", "--port=7860"]