File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
- # whisper-openai-api
1
+ # Whisper OpenAI API
2
2
3
3
4
+ ## Environment variables
5
+
6
+ | Variable | Description |
7
+ | -------- | ----------- |
8
+ | MODELS_CACHE_DIR | Directory to store the models |
9
+ | API_KEY | API key for API access (optional) |
Original file line number Diff line number Diff line change 1
- FROM python:3.12-slim
1
+ FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
2
2
3
- RUN apt-get update && \
4
- apt-get install -y python3-pip python3-dev curl && \
5
- rm -rf /var/lib/apt/lists/*
3
+ ENV PYTHONUNBUFFERED=1
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+ ENV TZ=Etc/UTC
6
+
7
+ RUN apt-get update -y && \
8
+ apt-get -y upgrade && \
9
+ apt-get install -y ffmpeg python3 python3-pip python3-dev curl && \
10
+ rm -rf /var/lib/apt/lists/*
6
11
7
12
RUN groupadd --gid 1100 whisper
8
13
RUN useradd --home /home/whisper --gid 1100 --uid 1100 whisper
Original file line number Diff line number Diff line change 1
1
services :
2
2
app :
3
- image : ghcr.io/etalab-ia/whisper-openai-api:latest
3
+ image : ghcr.io/etalab-ia/whisper-openai-api/app :latest
4
4
restart : always
5
5
command : python3 app/main.py --model openai/whisper-large-v3
6
6
ports :
You can’t perform that action at this time.
0 commit comments