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.
16 lines
428 B
Docker
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"]
|