UV update!
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
ENV PORT=7860
|
| 4 |
ENV HOST=0.0.0.0
|
| 5 |
-
|
| 6 |
ENV WHISPER_CACHE=/app/.cache
|
| 7 |
ENV HF_HOME=/app/.cache
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 10 |
ffmpeg \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -13,7 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
COPY requirements.txt .
|
| 16 |
-
RUN pip install -
|
| 17 |
|
| 18 |
RUN python -c "from faster_whisper import WhisperModel; WhisperModel('base', device='cpu', compute_type='int8', download_root='/app/.cache')"
|
| 19 |
|
|
|
|
| 1 |
+
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
|
| 2 |
|
| 3 |
ENV PORT=7860
|
| 4 |
ENV HOST=0.0.0.0
|
|
|
|
| 5 |
ENV WHISPER_CACHE=/app/.cache
|
| 6 |
ENV HF_HOME=/app/.cache
|
| 7 |
|
| 8 |
+
ENV UV_SYSTEM_PYTHON=1
|
| 9 |
+
ENV UV_COMPILE_BYTECODE=1
|
| 10 |
+
|
| 11 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 12 |
ffmpeg \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
COPY requirements.txt .
|
| 18 |
+
RUN uv pip install -r requirements.txt
|
| 19 |
|
| 20 |
RUN python -c "from faster_whisper import WhisperModel; WhisperModel('base', device='cpu', compute_type='int8', download_root='/app/.cache')"
|
| 21 |
|