Add compose-based backend runtime on python 3.14
This commit is contained in:
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
backend:
|
||||
image: python:3.14-slim
|
||||
working_dir: /app/backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./:/app
|
||||
- whisper_cache:/root/.cache
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
command: >-
|
||||
sh -lc "
|
||||
apt-get update
|
||||
&& apt-get install -y --no-install-recommends ffmpeg
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& pip install --no-cache-dir -e . openai-whisper
|
||||
&& uvicorn server:app --app-dir src --host 0.0.0.0 --port 8000
|
||||
"
|
||||
|
||||
volumes:
|
||||
whisper_cache:
|
||||
Reference in New Issue
Block a user