Skip to content

Commit f576978

Browse files
author
leoguillaume
committed
fix: compose
1 parent a827eab commit f576978

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
# whisper-openai-api
1+
# Whisper OpenAI API
22

33

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) |

app/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
FROM python:3.12-slim
1+
FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
22

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/*
611

712
RUN groupadd --gid 1100 whisper
813
RUN useradd --home /home/whisper --gid 1100 --uid 1100 whisper

compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
app:
3-
image: ghcr.io/etalab-ia/whisper-openai-api:latest
3+
image: ghcr.io/etalab-ia/whisper-openai-api/app:latest
44
restart: always
55
command: python3 app/main.py --model openai/whisper-large-v3
66
ports:

0 commit comments

Comments
 (0)