Update Dockerfile
Browse files- Dockerfile +4 -13
Dockerfile
CHANGED
|
@@ -1,22 +1,13 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
ENV PYTHONDONTWRITEBYTECODE=1 \
|
| 4 |
-
PYTHONUNBUFFERED=1 \
|
| 5 |
-
PIP_NO_CACHE_DIR=1
|
| 6 |
-
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 11 |
-
|
| 12 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
COPY requirements.txt /app/requirements.txt
|
| 15 |
-
|
| 16 |
-
# Force reinstall to avoid any preinstalled/bundled gradio mismatches
|
| 17 |
-
RUN pip install --upgrade pip setuptools wheel && \
|
| 18 |
-
pip uninstall -y gradio gradio-client || true && \
|
| 19 |
-
pip install --no-cache-dir --force-reinstall -r /app/requirements.txt
|
| 20 |
|
| 21 |
COPY app /app/app
|
| 22 |
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# (Optional but strongly recommended) Install ffmpeg for audio utilities
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg \
|
| 7 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 8 |
|
| 9 |
COPY requirements.txt /app/requirements.txt
|
| 10 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
COPY app /app/app
|
| 13 |
|