Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
|
@@ -2,8 +2,16 @@ FROM python:3.10.9
|
|
| 2 |
|
| 3 |
COPY . .
|
| 4 |
|
| 5 |
-
WORKDIR /
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 2 |
|
| 3 |
COPY . .
|
| 4 |
|
| 5 |
+
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Extract ffmpeg from the zip file and set correct permissions
|
| 8 |
+
RUN unzip ffmpeg.zip -d /app/ffmpeg \
|
| 9 |
+
&& chmod +x /app/ffmpeg/ffmpeg
|
| 10 |
+
|
| 11 |
+
# Install Python dependencies
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
| 13 |
|
| 14 |
+
# Make sure the ffmpeg binary is accessible from the system's PATH
|
| 15 |
+
ENV PATH="/app/ffmpeg:$PATH"
|
| 16 |
+
|
| 17 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|