Files
haunt-fm/Dockerfile

25 lines
544 B
Docker
Raw Normal View History

FROM python:3.12-slim
# System deps for librosa/soundfile (ffmpeg for AAC decoding)
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy everything and install
COPY pyproject.toml .
COPY src/ src/
COPY alembic.ini .
COPY alembic/ alembic/
RUN pip install --no-cache-dir -e .
# Create cache directories
RUN mkdir -p /app/model-cache /app/audio-cache
EXPOSE 8000
CMD ["uvicorn", "haunt_fm.main:app", "--host", "0.0.0.0", "--port", "8000"]