updated docker images to Ubuntu 24.04

This commit is contained in:
Jenny Danzmayr 2024-12-03 20:59:25 +01:00
parent b96dcb9b50
commit d13af9e5d1
2 changed files with 55 additions and 49 deletions

View file

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.6@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 # syntax=docker/dockerfile:1.6@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
FROM ubuntu:lunar-20231128@sha256:5a828e28de105c3d7821c4442f0f5d1c52dc16acf4999d5f31a3bc0f03f06edd as base FROM ubuntu:noble-20241118.1@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab as base
ARG BASE_IMAGE_NAME=ubuntu:lunar-20231128 ARG BASE_IMAGE_NAME=ubuntu:noble-20241118.1
ARG BASE_IMAGE_DIGEST=sha256:5a828e28de105c3d7821c4442f0f5d1c52dc16acf4999d5f31a3bc0f03f06edd ARG BASE_IMAGE_DIGEST=sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
ARG TARGETARCH ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/library/$BASE_IMAGE_NAME" \ LABEL org.opencontainers.image.base.name="docker.io/library/$BASE_IMAGE_NAME" \
@ -15,41 +15,44 @@ ENV DEBIAN_FRONTEND noninteractive
RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \
rm /etc/apt/apt.conf.d/docker-clean && \ rm /etc/apt/apt.conf.d/docker-clean && \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
python3.11=3.11.4-1~23.04.2 \ python3.12=3.12.3-1ubuntu0.3 \
# renovate: srcname=python3.11 # renovate: srcname=python3.12
libpython3.11=3.11.4-1~23.04.2 \ libpython3.12=3.12.3-1ubuntu0.3 \
# renovate: srcname=python3.11 # renovate: srcname=python3.12
python3.11-venv=3.11.4-1~23.04.2 \ python3.12-venv=3.12.3-1ubuntu0.3 \
# renovate: srcname=python-pip # renovate: srcname=python-pip
python3-pip=23.0.1+dfsg-1ubuntu0.2 \ python3-pip=24.0+dfsg-1ubuntu1.1 \
# renovate: srcname=postgresql-15 # renovate: srcname=postgresql-16
libpq5=15.5-0ubuntu0.23.04.1 \ libpq5=16.6-0ubuntu0.24.04.1 \
# renovate: srcname=postgresql-15 # renovate: srcname=postgresql-16
postgresql-client-15=15.5-0ubuntu0.23.04.1 \ postgresql-client-16=16.6-0ubuntu0.24.04.1 \
curl=7.88.1-8ubuntu2.4 \ curl=8.5.0-2ubuntu10.5 \
libpcre3=2:8.39-15 \ # renovate: srcname=pcre3
libpcre3=2:8.39-15build1 \
# renovate: srcname=librsvg # renovate: srcname=librsvg
librsvg2-2=2.54.5+dfsg-1ubuntu2.1 \ librsvg2-2=2.58.0+dfsg-1build1 \
# renovate: srcname=librsvg # renovate: srcname=librsvg
gir1.2-rsvg-2.0=2.54.5+dfsg-1ubuntu2.1 \ gir1.2-rsvg-2.0=2.58.0+dfsg-1build1 \
libgirepository-1.0-1=1.76.1-1 \ libgirepository-1.0-1=1.80.1-1 \
gettext \ gettext \
tzdata=2023d-0ubuntu0.23.04 \ tzdata=2024a-3ubuntu1.1 \
ca-certificates=20230311ubuntu0.23.04.1 \ ca-certificates=20240203 \
zstd=1.5.4+dfsg2-4 zstd=1.5.5+dfsg2-2build1.1
ENV PATH="/usr/lib/postgresql/15/bin/:$PATH" ENV PATH="/usr/lib/postgresql/16/bin/:$PATH"
FROM base as builder FROM base as builder
RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
build-essential=12.9ubuntu3 \ build-essential=12.10ubuntu1 \
# renovate: srcname=python3.11 # renovate: srcname=python3.12
python3.11-dev=3.11.4-1~23.04.2 \ python3.12-dev=3.12.3-1ubuntu0.3 \
libpcre3-dev=2:8.39-15 \ libpcre3-dev=2:8.39-15build1 \
# renovate: srcname=postgresql-15 # renovate: srcname=postgresql-16
libpq-dev=15.5-0ubuntu0.23.04.1 \ libpq-dev=16.6-0ubuntu0.24.04.1 \
libgirepository1.0-dev=1.76.1-1 libgirepository1.0-dev=1.80.1-1 \
# renovate: srcname=libmemcached \
libmemcached-dev=1.1.4-1.1build3
RUN mkdir /app RUN mkdir /app
@ -57,7 +60,7 @@ WORKDIR /app
RUN --mount=type=cache,target=/pip-cache \ RUN --mount=type=cache,target=/pip-cache \
--mount=type=bind,source=/src/requirements,target=/app/requirements \ --mount=type=bind,source=/src/requirements,target=/app/requirements \
python3.11 -m venv env && \ python3.12 -m venv env && \
. /app/env/bin/activate && \ . /app/env/bin/activate && \
pip install --cache-dir /pip-cache --upgrade pip wheel && \ pip install --cache-dir /pip-cache --upgrade pip wheel && \
pip install --cache-dir /pip-cache \ pip install --cache-dir /pip-cache \

View file

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.6@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 # syntax=docker/dockerfile:1.6@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
FROM ubuntu:lunar-20231128@sha256:5a828e28de105c3d7821c4442f0f5d1c52dc16acf4999d5f31a3bc0f03f06edd as base FROM ubuntu:noble-20241118.1@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab as base
ARG BASE_IMAGE_NAME=ubuntu:lunar-20231128 ARG BASE_IMAGE_NAME=ubuntu:noble-20241118.1
ARG BASE_IMAGE_DIGEST=sha256:5a828e28de105c3d7821c4442f0f5d1c52dc16acf4999d5f31a3bc0f03f06edd ARG BASE_IMAGE_DIGEST=sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
ARG TARGETARCH ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/library/$BASE_IMAGE_NAME" \ LABEL org.opencontainers.image.base.name="docker.io/library/$BASE_IMAGE_NAME" \
@ -15,27 +15,30 @@ ENV DEBIAN_FRONTEND noninteractive
RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \
rm /etc/apt/apt.conf.d/docker-clean && \ rm /etc/apt/apt.conf.d/docker-clean && \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
python3.11=3.11.4-1~23.04.2 \ python3.12=3.12.3-1ubuntu0.3 \
# renovate: srcname=python3.11 # renovate: srcname=python3.12
libpython3.11=3.11.4-1~23.04.2 \ libpython3.12=3.12.3-1ubuntu0.3 \
# renovate: srcname=python3.11 # renovate: srcname=python3.12
python3.11-venv=3.11.4-1~23.04.2 \ python3.12-venv=3.12.3-1ubuntu0.3 \
# renovate: srcname=python-pip # renovate: srcname=python-pip
python3-pip=23.0.1+dfsg-1ubuntu0.2 \ python3-pip=24.0+dfsg-1ubuntu1.1 \
curl=7.88.1-8ubuntu2.4 \ curl=8.5.0-2ubuntu10.5 \
libpcre3=2:8.39-15 \ # renovate: srcname=pcre3
tzdata=2023d-0ubuntu0.23.04 \ libpcre3=2:8.39-15build1 \
ca-certificates=20230311ubuntu0.23.04.1 \ tzdata=2024a-3ubuntu1.1 \
zstd=1.5.4+dfsg2-4 ca-certificates=20240203 \
zstd=1.5.5+dfsg2-2build1.1
FROM base as builder FROM base as builder
RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \ RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
build-essential=12.9ubuntu3 \ build-essential=12.10ubuntu1 \
# renovate: srcname=python3.11 # renovate: srcname=python3.12
python3.11-dev=3.11.4-1~23.04.2 \ python3.12-dev=3.12.3-1ubuntu0.3 \
libpcre3-dev=2:8.39-15 libpcre3-dev=2:8.39-15build1 \
# renovate: srcname=libmemcached \
libmemcached-dev=1.1.4-1.1build3
RUN mkdir /app RUN mkdir /app
@ -43,7 +46,7 @@ WORKDIR /app
RUN --mount=type=cache,target=/pip-cache \ RUN --mount=type=cache,target=/pip-cache \
--mount=type=bind,source=/src/requirements-tileserver.txt,target=/app/requirements-tileserver.txt \ --mount=type=bind,source=/src/requirements-tileserver.txt,target=/app/requirements-tileserver.txt \
python3.11 -m venv env && \ python3.12 -m venv env && \
. /app/env/bin/activate && \ . /app/env/bin/activate && \
pip install --cache-dir /pip-cache --upgrade pip wheel && \ pip install --cache-dir /pip-cache --upgrade pip wheel && \
pip install --cache-dir /pip-cache -r requirements-tileserver.txt && \ pip install --cache-dir /pip-cache -r requirements-tileserver.txt && \