Skip to content

Commit d2ba753

Browse files
committed
Update default versions in Dockerfile and add pip dependency cooldown
1 parent 9d814a7 commit d2ba753

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

alpine/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG PY_VER="3.10"
2-
ARG OS_VER="3.17"
1+
ARG PY_VER="3.12"
2+
ARG OS_VER="3.23"
33
FROM python:${PY_VER}-alpine${OS_VER} AS base
44
ARG SD_TAG="master"
55
ARG GIT_SD_USER="eliasdoehne"
@@ -26,7 +26,9 @@ RUN if [ "${SD_TAG}" = "master" ]; then \
2626
curl --no-progress-meter -o sd_version.json "https://api.github.com/repos/$GIT_SD_USER/$GIT_SD_NAME/git/refs/tags/$SD_TAG"; \
2727
fi
2828
RUN git clone -b "$SD_TAG" --single-branch --depth 1 -c advice.detachedHead=false https://github.com/$GIT_SD_USER/$GIT_SD_NAME.git
29-
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir wheel setuptools && \
29+
RUN pip install --no-cache-dir --upgrade pip && \
30+
export PIP_UPLOADED_PRIOR_TO=$(date -u -d '3 days ago' '+%Y-%m-%dT%H:%M:%SZ') && \
31+
pip install --no-cache-dir wheel setuptools && \
3032
pip install --no-cache-dir Cython patchelf && \
3133
pip install --no-cache-dir --extra-index-url https://alpine-wheels.github.io/index -r stellaris-dashboard/requirements.txt -r stellaris-dashboard/dev-requirements.txt
3234

debian/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG PY_VER="3.10"
2-
ARG OS_VER="bullseye"
1+
ARG PY_VER="3.12"
2+
ARG OS_VER="trixie"
33
FROM python:${PY_VER}-slim-${OS_VER} AS base
44
ARG SD_TAG="master"
55
ARG GIT_SD_USER="eliasdoehne"
@@ -26,7 +26,9 @@ RUN if [ "${SD_TAG}" = "master" ]; then \
2626
curl --no-progress-meter -o sd_version.json "https://api.github.com/repos/$GIT_SD_USER/$GIT_SD_NAME/git/refs/tags/$SD_TAG"; \
2727
fi
2828
RUN git clone -b "$SD_TAG" --single-branch --depth 1 -c advice.detachedHead=false https://github.com/$GIT_SD_USER/$GIT_SD_NAME.git
29-
RUN pip install --no-cache-dir --upgrade pip && pip --no-cache-dir install wheel setuptools && \
29+
RUN pip install --no-cache-dir --upgrade pip && \
30+
export PIP_UPLOADED_PRIOR_TO=$(date -u -d '3 days ago' '+%Y-%m-%dT%H:%M:%SZ') && \
31+
pip --no-cache-dir install wheel setuptools && \
3032
pip --no-cache-dir install Cython patchelf && \
3133
pip --no-cache-dir install -r stellaris-dashboard/requirements.txt -r stellaris-dashboard/dev-requirements.txt
3234

0 commit comments

Comments
 (0)