Taddes 19b6176d5b
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
chore: update sync python version (#1774)
chore: update sync python version
2025-08-28 20:27:58 -04:00

28 lines
723 B
Docker

FROM python:3.13-bookworm
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=2.1.3 \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false \
POETRY_CACHE_DIR='/var/cache/pypoetry' \
POETRY_HOME='/usr/local'
RUN curl -sSL https://install.python-poetry.org | python3 -
WORKDIR /app/
COPY purge_ttl.py count_expired_rows.py count_users.py poetry.lock pyproject.toml /app/
RUN python3 --version
RUN poetry config virtualenvs.create false && \
poetry install --without dev --no-interaction --no-ansi
USER nobody
ENTRYPOINT ["/usr/local/bin/python"]
CMD ["/app/purge_ttl.py"]