34 lines
659 B
Docker
34 lines
659 B
Docker
# Location: /home/pi/docker/navidrome/companion_api/Dockerfile
|
|
|
|
FROM python:3.11-slim
|
|
|
|
# System dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
libsndfile1 \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Python dependencies
|
|
RUN pip install --no-cache-dir \
|
|
fastapi \
|
|
"uvicorn[standard]" \
|
|
mutagen \
|
|
httpx \
|
|
python-multipart \
|
|
librosa \
|
|
numpy \
|
|
tqdm \
|
|
websockets
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Data directories (mounted as volume, created as fallback)
|
|
RUN mkdir -p /app/data /app/data/vis_cache
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|