Spaces:
Build error
Build error
# Dockerfile | |
FROM python:3.11-slim | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN sudo apt-get update && sudo apt-get install -y libportaudio2 libportaudiocpp0 portaudio19-dev python3-dev build-essential | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] | |
# docker-compose.yml | |
version: '3.8' | |
services: | |
api: | |
build: | |
context: . | |
dockerfile: docker/Dockerfile | |
ports: | |
- "8000:8000" | |
env_file: | |
- .env | |
volumes: | |
- .:/app | |
restart: unless-stopped |