card-grader/Dockerfile
Barely Removable c7bd71a3e1 Initial commit: Card Grader deployed to hippofam.com/cards
PWA card-grading app, deployed behind Nginx Proxy Manager on Unraid with
basic auth. Includes CARD_GRADER_BASE_PATH support for running under a
sub-path, and Docker/compose config for the Unraid deployment.
2026-08-22 09:22:41 -07:00

16 lines
428 B
Docker

FROM python:3.12-slim
# Only optional deps (see README) — the app itself is stdlib only.
RUN pip install --no-cache-dir anthropic pillow
WORKDIR /app
COPY app.py cardimage.py store.py vision.py ./
COPY static/ ./static/
# grades.db lives here; mount a volume at /data to persist it across
# container recreates and image updates.
ENV CARD_GRADER_DB_PATH=/data/grades.db
ENV PORT=8778
EXPOSE 8778
CMD ["python3", "app.py"]