understanding commited on
Commit
24d0dae
·
verified ·
1 Parent(s): 94184a8

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a standard Python 3.10 image
2
+ FROM python:3.10-slim
3
+
4
+ # 1. Install ffmpeg (the program your Python code needs)
5
+ RUN apt-get update && apt-get install -y \
6
+ ffmpeg \
7
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
8
+
9
+ # 2. Set up the working directory
10
+ WORKDIR /code
11
+
12
+ # 3. Copy and install Python requirements
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # 4. Copy the app code
17
+ COPY app.py .
18
+
19
+ # 5. Run the app
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]