mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
Each gunicorn service (edge, fetcher, generator) now writes a request line
("GET /x HTTP/1.1" 200 12ms) to stdout, which Pantheos ingests for request
logs and rps / 5xx / p95. /metrics and /health are left out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
370 B
Docker
16 lines
370 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src ./src
|
|
COPY gunicorn.conf.py ./
|
|
RUN mkdir -p /app/data
|
|
|
|
EXPOSE 5001
|
|
ENV FETCHER_DB_PATH=/app/data/fetcher.db
|
|
|
|
# Default is the API. Override CMD for cron: ["python", "-m", "src.cron"]
|
|
CMD ["gunicorn", "-b", "0.0.0.0:5001", "-w", "2", "src.api:app"]
|