Quartz4065 commited on
Commit
b7488cc
·
verified ·
1 Parent(s): 54358d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -11
Dockerfile CHANGED
@@ -1,21 +1,16 @@
1
  FROM python:3.11-slim
2
 
3
- # System deps
4
- RUN apt-get update && apt-get install -y --no-install-recommends \
5
- ffmpeg libsndfile1 && \
6
- rm -rf /var/lib/apt/lists/*
7
-
8
  WORKDIR /app
9
 
10
- # Python deps
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # App
15
- COPY app.py .
 
16
 
17
- # Hugging Face Spaces runs on port 7860
18
- EXPOSE 7860
19
- ENV HF_HOME=/cache
20
 
 
 
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
 
 
 
 
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ # ffmpeg + libsndfile for decoding
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
11
 
12
+ COPY app.py .
 
 
13
 
14
+ # Spaces expects the app on 7860
15
+ ENV PORT=7860
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]