Many dependencies are installed manually within the Dockerfiles, where Renovate cannot determine the version numbers by default. However, through custom matching, the corresponding data sources can be invoked, and the version number replaced via regex.
44 lines
978 B
Docker
44 lines
978 B
Docker
FROM python:3.12.5-slim-bookworm
|
|
|
|
ARG PIP_VERSION=24.2
|
|
ARG NUMPY_VERSION=2.1.0
|
|
ARG HTTPIE_VERSION=3.2.3
|
|
ARG PYFROGEJO_VERSION=1.0.2
|
|
ARG DOCKER_VERSION=7.1.0
|
|
ARG XQ_VERSION=0.0.4
|
|
ARG SPOTIFY_VERSION=0.10.2
|
|
ARG REQUESTS_VERSION=2.32.2
|
|
|
|
RUN set -e; \
|
|
apt-get update -q; \
|
|
apt-get install -qy --no-install-recommends --no-install-suggests \
|
|
bc \
|
|
curl \
|
|
dash \
|
|
gettext \
|
|
git \
|
|
jq \
|
|
; \
|
|
apt-get clean; \
|
|
rm -rf \
|
|
/var/cache/apt/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/log/* \
|
|
/usr/local/share/doc/* \
|
|
/usr/local/share/man/* \
|
|
/usr/share/doc/* \
|
|
/usr/share/man/* \
|
|
;
|
|
|
|
# No need for root access for a script runner
|
|
RUN useradd -m -d /home/runner -s /bin/bash runner;
|
|
WORKDIR /home/runner
|
|
USER runner
|
|
|
|
ENV PATH=/home/runner/.local/bin:$PATH
|
|
|
|
COPY requirements.txt ./
|
|
|
|
RUN set -e; \
|
|
pip install --user -r requirements.txt; \
|
|
rm -r /home/runner/.cache;
|