saeedzou commited on
Commit
94cf126
·
verified ·
1 Parent(s): b42c7b6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -14
Dockerfile CHANGED
@@ -1,14 +1,16 @@
1
- FROM python:3.10-slim
2
-
3
-
4
- # Install ffmpeg for pydub
5
- RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
6
-
7
- WORKDIR /app
8
-
9
- COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
-
12
- COPY . .
13
-
14
- ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install ffmpeg for pydub and build tools for compiling C++ extensions
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ build-essential \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . .
15
+
16
+ ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]