|
| 1 | +# SPDX-License-Identifier: MIT |
| 2 | + |
| 3 | +# Copyright (c) 2025 SUSE LLC |
| 4 | + |
| 5 | +# All modifications and additions to the file contributed by third parties |
| 6 | +# remain the property of their copyright owners, unless otherwise agreed |
| 7 | +# upon. |
| 8 | + |
| 9 | +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. |
| 10 | +# It is maintained by the BCI team and generated by |
| 11 | +# https://github.com/SUSE/BCI-dockerfile-generator |
| 12 | + |
| 13 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 14 | +# You can contact the BCI team via https://github.com/SUSE/bci/discussions |
| 15 | + |
| 16 | +#!UseOBSRepositories |
| 17 | +#!ExclusiveArch: aarch64 x86_64 ppc64le s390x |
| 18 | +#!BuildTag: bci/openjdk:%%java_version%%-%RELEASE% |
| 19 | +#!BuildTag: bci/openjdk:%%java_version%% |
| 20 | +#!BuildTag: bci/openjdk:25 |
| 21 | +#!BuildTag: bci/openjdk:latest |
| 22 | +#!BuildName: bci-openjdk-25 |
| 23 | +#!BuildVersion: 16.0.25 |
| 24 | +FROM registry.suse.com/bci/bci-base:16.0 |
| 25 | + |
| 26 | +RUN set -euo pipefail; \ |
| 27 | + zypper -n install --no-recommends java-25-openjdk mozilla-nss-sysinit curl findutils gawk git-core procps util-linux |
| 28 | + |
| 29 | +# cleanup logs and temporary files |
| 30 | +RUN set -euo pipefail; zypper -n clean -a; \ |
| 31 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \ |
| 32 | + rm -rf {/target,}/run/*; \ |
| 33 | + rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \ |
| 34 | + rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \ |
| 35 | + rm -f {/target,}/var/cache/ldconfig/aux-cache; \ |
| 36 | + command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled |
| 37 | + |
| 38 | +# set the day of last password change to empty |
| 39 | +RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow |
| 40 | + |
| 41 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 42 | +# labelprefix=com.suse.bci.openjdk |
| 43 | +LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions" |
| 44 | +LABEL org.opencontainers.image.title="SUSE Linux BCI OpenJDK 25 runtime" |
| 45 | +LABEL org.opencontainers.image.description="OpenJDK 25 runtime container based on the SUSE Linux Base Container Image." |
| 46 | +LABEL org.opencontainers.image.version="%%java_version%%" |
| 47 | +LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/" |
| 48 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 49 | +LABEL org.opencontainers.image.vendor="SUSE LLC" |
| 50 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 51 | +LABEL org.opencontainers.image.ref.name="%%java_version%%-%RELEASE%" |
| 52 | +LABEL org.opensuse.reference="registry.suse.com/bci/openjdk:%%java_version%%-%RELEASE%" |
| 53 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 54 | +LABEL com.suse.supportlevel="l3" |
| 55 | +LABEL com.suse.eula="sle-bci" |
| 56 | +LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-16" |
| 57 | +LABEL com.suse.release-stage="released" |
| 58 | +# endlabelprefix |
| 59 | +LABEL org.opencontainers.image.base.name="%BASE_REFNAME%" |
| 60 | +LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%" |
| 61 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%" |
| 62 | +ENV JAVA_BINDIR="/usr/lib64/jvm/java-25-openjdk-25/bin" |
| 63 | +ENV JAVA_HOME="/usr/lib64/jvm/java-25-openjdk-25" |
| 64 | +ENV JAVA_ROOT="/usr/lib64/jvm/java-25-openjdk-25" |
| 65 | +ENV JAVA_VERSION="25" |
| 66 | +RUN set -euo pipefail; [ -d $JAVA_HOME ]; [ -d $JAVA_BINDIR ]; [ -f "$JAVA_BINDIR/java" ] && [ -x "$JAVA_BINDIR/java" ] |
0 commit comments