mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2026-01-23 01:11:29 +01:00
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
chore: update sync python version
28 lines
723 B
Docker
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"]
|