FROM python:3.12-alpine WORKDIR /app # The one-key weekly audio loop is composed lazily when first requested. # Keep ffmpeg in the NAS image so this also works after moving off the Mac. RUN apk add --no-cache ffmpeg COPY app.py curriculum.json ./ COPY public ./public ENV HOST=0.0.0.0 \ PORT=8000 \ ASSET_ROOT=/assets \ DATA_DIR=/data \ PYTHONUNBUFFERED=1 EXPOSE 8000 VOLUME ["/data"] CMD ["python", "app.py"]