Files
md-to-html/Dockerfile
T
Sergey Filkin 0fe596383e Initial commit
2026-04-17 23:39:57 +03:00

21 lines
552 B
Docker

FROM python:3.12-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends tini \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000 8501
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD python -c "import urllib.request as u; u.urlopen('http://127.0.0.1:8000/health', timeout=3); u.urlopen('http://127.0.0.1:8501/_stcore/health', timeout=3)"
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["python", "start.py"]