Barry Chen 7a158efe8f
chore(build): upgrade bookworm -> trixie (and thus python 3.13) (#2290)
This commit
 - upgrades Debian Bookworm to Trixie
 - uses pip --ignore-installed since pip can't uninstall system python packages
 - installs python3-setuptools for pyramid's pkg_resources dependency
 - upgrades to boto3 since a boto vendored dep won't work in python 3.13
2026-05-11 08:50:19 -05:00

28 lines
683 B
Docker

FROM python:3.14-trixie
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 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"]