# HAB Cloud image: HAB on any cloud server, no PC needed. Build from the HAB folder:
#   docker build -f cloud/Dockerfile -t hab-cloud .
# Run (see cloud/README.md for the settings):
#   docker run -p 8080:8080 -v hab-state:/state --env-file cloud/hab.env hab-cloud
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir numpy pypdf pywebpush cryptography
COPY . /app
ENV HAB_CLOUD=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=utf-8 PYTHONUTF8=1 PORT=8080
VOLUME /state
EXPOSE 8080
CMD ["sh", "cloud/start.sh"]
