29 lines
779 B
Docker
Raw Normal View History

2026-05-16 01:28:39 +02:00
FROM python:3.13-slim
2026-05-12 15:07:34 +02:00
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml .
COPY devplacepy/ devplacepy/
2026-06-08 17:38:33 +02:00
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
2026-05-12 15:07:34 +02:00
2026-06-08 17:38:33 +02:00
RUN pip install --no-cache-dir ".[bots]" \
&& python -m playwright install --with-deps chromium \
&& chmod -R a+rx /ms-playwright
RUN mkdir -p /app/devplacepy/static/uploads/attachments
2026-05-12 15:07:34 +02:00
EXPOSE 10500
2026-06-08 17:38:33 +02:00
ENV DEVPLACE_WEB_WORKERS=2
2026-05-12 15:07:34 +02:00
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=10s \
CMD curl -f http://localhost:10500/ || exit 1
2026-06-08 17:38:33 +02:00
CMD ["uvicorn", "devplacepy.main:app", "--host", "0.0.0.0", "--port", "10500", "--workers", "2", "--backlog", "8192", "--proxy-headers", "--forwarded-allow-ips", "*"]