# Build from the repo root so the web player comes along:
#   docker build -f server/Dockerfile -t stemserve .
FROM python:3.12-alpine
RUN apk add --no-cache ffmpeg
COPY server/stemserve.py /app/server/stemserve.py
COPY web /app/web
ENV STEMS_DIR=/stems CACHE_DIR=/cache PORT=8765 PYTHONUNBUFFERED=1
EXPOSE 8765
# Unraid shares belong to nobody:users.
USER 99:100
CMD ["python", "/app/server/stemserve.py"]
