# The Flask instance of the hazard API, for the DGX Spark (arm64) or any Docker host.
#   docker compose up -d --build        # from this folder; see docker-compose.yml
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir flask waitress certifi
COPY sources.py lab.py hazard.py guard.py flask_app.py ./
COPY certs ./certs
ENV PORT=8788
EXPOSE 8788
CMD ["python", "flask_app.py"]
