mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-19 13:49:09 -04:00
18 lines
503 B
Docker
18 lines
503 B
Docker
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends python3 python3-pip ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip3 install --no-cache-dir --upgrade pip \
|
|
&& pip3 install --no-cache-dir faster-whisper requests
|
|
|
|
WORKDIR /app
|
|
COPY python/tools/whisper/inference.py /app/inference.py
|
|
|
|
ENTRYPOINT ["python3", "/app/inference.py"]
|