broadfield-dev commited on
Commit
374dafb
·
verified ·
1 Parent(s): 31e6adf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # ffmpeg is the only system dependency
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends ffmpeg && \
6
+ apt-get clean && rm -rf /var/lib/apt/lists/*
7
+
8
+ WORKDIR /app
9
+
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ COPY app.py .
14
+
15
+ # HuggingFace Spaces routes external traffic to port 7860
16
+ EXPOSE 7860
17
+
18
+ CMD ["python", "app.py"]