From 6e32f456730bf225be60aa9e8791223a60aa85be Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Tue, 13 Oct 2026 14:16:57 +0300 Subject: [PATCH] Apply Ubuntu security updates when building the Docker image The Dockerfile installs packages without upgrading the ones the tomcat base image ships. The image gets Ubuntu security fixes only after tomcat rebuilds its base image, so a build in between carries the old packages: Trivy flags openssl 3.0.13-0ubuntu3.15 in the released image, fixed in 3.16. Install curl and unzip without recommended packages, as the OpenDJ, OpenIDM and OpenICF images do: the image needs none of them. The file had no license header; add the CDDL one. --- .../openam-distribution-docker/Dockerfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/openam-distribution/openam-distribution-docker/Dockerfile b/openam-distribution/openam-distribution-docker/Dockerfile index ee375e8cf9..49b911a5b1 100644 --- a/openam-distribution/openam-distribution-docker/Dockerfile +++ b/openam-distribution/openam-distribution-docker/Dockerfile @@ -1,3 +1,17 @@ +# The contents of this file are subject to the terms of the Common Development and +# Distribution License (the License). You may not use this file except in compliance with the +# License. +# +# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the +# specific language governing permission and limitations under the License. +# +# When distributing Covered Software, include this CDDL Header Notice in each file and include +# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL +# Header, with the fields enclosed by brackets [] replaced by your own identifying +# information: "Portions copyright [year] [name of copyright owner]". +# +# Portions Copyright 2026 3A Systems, LLC. + FROM tomcat:11-jre25 LABEL org.opencontainers.image.authors="Open Identity Platform Community" @@ -21,7 +35,9 @@ RUN mkdir /usr/openam \ RUN if [ ! -f "$CATALINA_HOME/webapps/$OPENAM_PATH.war" ]; then echo file exists; fi -RUN apt-get update && apt-get install -y curl unzip \ +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \ + && apt-get install -y --no-install-recommends curl unzip \ && if [ -z "$VERSION" ] ; then VERSION="$(curl -i -o - --silent https://api.github.com/repos/OpenIdentityPlatform/OpenAM/releases/latest | grep -m1 "\"name\"" | cut -d\" -f4)"; fi \ && if [ ! -f "$CATALINA_HOME/webapps/$OPENAM_PATH.war" ]; then echo file exists && curl -L https://github.com/OpenIdentityPlatform/OpenAM/releases/download/$VERSION/OpenAM-$VERSION.war --output $CATALINA_HOME/webapps/$OPENAM_PATH.war; fi \ && if [ ! -f "/usr/openam/ssoconfiguratortools.zip" ]; then curl -L https://github.com/OpenIdentityPlatform/OpenAM/releases/download/$VERSION/SSOConfiguratorTools-$VERSION.zip --output /usr/openam/ssoconfiguratortools.zip; fi \