pmmdot commited on
Commit
3a6d46d
·
1 Parent(s): 2ecaacb

UV update!

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,11 +1,13 @@
1
- FROM python:3.11-slim
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 --no-cache-dir -r requirements.txt
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