The pyproject.toml references the package source, so src/ must be present when pip resolves metadata. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
544 B
Docker
25 lines
544 B
Docker
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"]
|