Skip to content

Commit 6dd25f9

Browse files
authored
Merge pull request zaproxy#9259 from psiinon/docker/jdk21-live
2 parents 116bda2 + 8788099 commit 6dd25f9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docker/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All notable changes to the docker containers will be documented in this file.
33

4+
### 2026-02-25
5+
- Updated live image to debian:trixie and JDK 21
6+
47
### 2026-02-09
58
- Added support for the delay job in the baseline
69

docker/Dockerfile-live

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# syntax=docker/dockerfile:1
22
# This dockerfile builds a 'live' zap docker image using the latest files in the repos
3-
FROM --platform=linux/amd64 debian:bookworm-slim AS builder
3+
FROM --platform=linux/amd64 debian:trixie-slim AS builder
44

55
ARG DEBIAN_FRONTEND=noninteractive
66

77
RUN apt-get update && apt-get install -q -y --fix-missing \
8-
openjdk-17-jdk \
8+
openjdk-21-jdk \
99
wget \
1010
curl \
1111
unzip \
@@ -34,7 +34,7 @@ RUN --mount=type=secret,id=webswing_url \
3434
# Remove Webswing bundled examples
3535
rm -Rf webswing/apps/
3636

37-
FROM debian:bookworm-slim AS final
37+
FROM debian:trixie-slim AS final
3838
LABEL maintainer="psiinon@gmail.com"
3939

4040
ARG DEBIAN_FRONTEND=noninteractive
@@ -45,7 +45,7 @@ RUN apt-get update && apt-get install -q -y --fix-missing \
4545
automake \
4646
autoconf \
4747
gcc g++ \
48-
openjdk-17-jdk \
48+
openjdk-21-jdk \
4949
wget \
5050
curl \
5151
xmlstarlet \
@@ -67,12 +67,11 @@ RUN apt-get update && apt-get install -q -y --fix-missing \
6767
mkdir /zap && \
6868
chown zap:zap /zap
6969

70-
RUN pip3 install \
70+
RUN pip install \
7171
--break-system-packages \
7272
--no-cache-dir \
7373
--upgrade \
7474
awscli \
75-
pip \
7675
zaproxy \
7776
pyyaml \
7877
requests \
@@ -84,7 +83,7 @@ USER zap
8483
RUN mkdir /home/zap/.vnc
8584

8685
ARG TARGETARCH
87-
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-$TARGETARCH
86+
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-$TARGETARCH
8887
ENV PATH=$JAVA_HOME/bin:/zap/:$PATH
8988

9089
ENV ZAP_PATH=/zap/zap.sh

0 commit comments

Comments
 (0)