Files
NHL-Scoreboard/Dockerfile
josh 73af434851
All checks were successful
CI / Lint (push) Successful in 5s
CI / Test (push) Successful in 5s
CI / Build & Push (push) Successful in 15s
fix: run as root to allow volume mount writes
2026-03-29 09:35:56 -04:00

22 lines
446 B
Docker

FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DATA_DIR=/app/app/data
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p $DATA_DIR
EXPOSE 2897
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:2897/')" || exit 1
CMD ["python", "run.py"]