Skip to content

Commit df6a2aa

Browse files
authored
build(docker): Move to Debian 13 and JRE 21 (#750)
1 parent ab807ad commit df6a2aa

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build libdispatch for the strip binary
2-
FROM --platform=linux/amd64 ghcr.io/getsentry/image-mirror-library-debian:12.15-slim AS libdispatch-build
2+
FROM --platform=linux/amd64 ghcr.io/getsentry/image-mirror-library-debian:13.7-slim AS libdispatch-build
33

44
RUN apt-get update && apt-get install -y --no-install-recommends \
55
build-essential \
@@ -21,13 +21,17 @@ RUN git clone https://github.com/apple/swift-corelibs-libdispatch.git && \
2121
git checkout 731d5c61ab5437e0e9bbfca7d318519a9d34f395 && \
2222
# Verify the commit hash matches our expectation
2323
test "$(git rev-parse HEAD)" = "731d5c61ab5437e0e9bbfca7d318519a9d34f395" && \
24+
# clang 19 (Debian 13) adds -Wcast-function-type-mismatch to -Wextra, and swift-5.9 builds with -Werror.
25+
# Append the opt-out after libdispatch's own flags so it takes precedence.
26+
echo 'add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-cast-function-type-mismatch>)' \
27+
>> cmake/modules/DispatchCompilerWarnings.cmake && \
2428
mkdir build && cd build && \
2529
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/usr && \
2630
make -j$(nproc) && \
2731
make install
2832

2933
# Use Python 3.14 slim image
30-
FROM ghcr.io/getsentry/image-mirror-library-python:3.14.10-slim-bookworm
34+
FROM ghcr.io/getsentry/image-mirror-library-python:3.14.10-slim-trixie
3135

3236
# Build argument to determine if this is a test build
3337
ARG TEST_BUILD=false
@@ -48,13 +52,13 @@ RUN python3 -m pip --no-cache-dir --disable-pip-version-check install 'uv==0.13.
4852
RUN groupadd --gid 1000 app && \
4953
useradd --uid 1000 --gid app --shell /bin/bash --create-home app
5054

51-
# Install system dependencies including JDK 17 and FFmpeg
55+
# Install system dependencies including JRE 21 and FFmpeg
5256
RUN apt-get update && \
5357
apt-get install -y --no-install-recommends \
5458
curl \
5559
git \
5660
build-essential \
57-
openjdk-17-jre-headless \
61+
openjdk-21-jre-headless \
5862
unzip \
5963
zip \
6064
file \

0 commit comments

Comments
 (0)