11 lines
334 B
Docker
11 lines
334 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY hearth ./hearth
|
|
ENV PYTHONUNBUFFERED=1
|
|
VOLUME ["/app/data"]
|
|
HEALTHCHECK --interval=5m --timeout=10s --start-period=30s \
|
|
CMD python -m hearth.main --healthcheck || exit 1
|
|
CMD ["python", "-m", "hearth.main", "--loop"]
|