12.0.16-jdk17-al2023-amazoncorretto
sha256:492f3c908ed9b7e92b5a463043c95c495756e90bd5aeefac7a81e85ee292de98
OS/ARCH
Compressed size
264.19 MB
Last pushed
10 days by doijanky
Type
Image
Vulnerabilities
Manifest digest
sha256:a37dc75f53d4847207d1beb2b5733735eea3b22a3f186d467c437395ee5afc7d
0
COPY /rootfs/ / # buildkit
53.15 MB
1
CMD ["/bin/bash"]
0 B
2
ARG version=17.0.14.7-1
0 B
3
ARG package_version=1
0 B
4
RUN |2 version=17.0.14.7-1 package_version=1 /bin/sh -c set -eux && rpm --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2023 && echo "localpkg_gpgcheck=1" >> /etc/dnf/dnf.conf && CORRETO_TEMP=$(mktemp -d) && pushd ${CORRETO_TEMP} && RPM_LIST=("java-17-amazon-corretto-headless-$version.amzn2023.${package_version}.$(uname -m).rpm" "java-17-amazon-corretto-$version.amzn2023.${package_version}.$(uname -m).rpm" "java-17-amazon-corretto-devel-$version.amzn2023.${package_version}.$(uname -m).rpm" "java-17-amazon-corretto-jmods-$version.amzn2023.${package_version}.$(uname -m).rpm") && for rpm in ${RPM_LIST[@]}; do curl --fail -O https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/${rpm} && rpm -K "${CORRETO_TEMP}/${rpm}" | grep -F "${CORRETO_TEMP}/${rpm}: digests signatures OK" || exit 1; done && dnf install -y ${CORRETO_TEMP}/*.rpm && popd && rm -rf /usr/lib/jvm/java-17-amazon-corretto.$(uname -m)/lib/src.zip && rm -rf ${CORRETO_TEMP} && dnf clean all && sed -i '/localpkg_gpgcheck=1/d' /etc/dnf/dnf.conf # buildkit
156.53 MB
5
ENV LANG=C.UTF-8
0 B
6
ENV JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto
0 B
7
ENV JETTY_VERSION=12.0.16
0 B
8
ENV JETTY_HOME=/usr/local/jetty
0 B
9
ENV JETTY_BASE=/var/lib/jetty
0 B
10
ENV TMPDIR=/tmp/jetty
0 B
11
ENV PATH=/usr/local/jetty/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 B
12
ENV JETTY_TGZ_URL=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/12.0.16/jetty-home-12.0.16.tar.gz
0 B
13
ENV JETTY_GPG_KEYS=AED5EE6C45D0FE8D5D1B164F27DED4BF6216DB8F 2A684B57436A81FA8706B53C61C3351A438A3B7D 5989BAF76217B843D66BE55B2D0E1FB8FE4B68B4 B59B67FD7904984367F931800818D9D68FB67BAC BFBB21C246D7776836287A48A04E0C74ABB35FEA 8B096546B1A8F02656B15D3B1677D141BCF3584D F254B35617DC255D9344BCFA873A8E86B4372146 E22488CC94F63E3FC928536C4241C08270D999C3
0 B
14
RUN /bin/sh -c set -xe ; mkdir -p $TMPDIR ; yum install -y shadow-utils tar xz gzip which && yum clean all ; command -v dnf && dnf swap -y gnupg2-minimal gnupg2-full && dnf clean all ; export GNUPGHOME=/jetty-keys ; mkdir -p "$GNUPGHOME" ; for key in $JETTY_GPG_KEYS; do gpg --batch --keyserver "hkps://keyserver.ubuntu.com" --recv-keys "$key"; done ; mkdir -p "$JETTY_HOME" ; cd $JETTY_HOME ; curl -SL "$JETTY_TGZ_URL" -o jetty.tar.gz ; curl -SL "$JETTY_TGZ_URL.asc" -o jetty.tar.gz.asc ; gpg --batch --verify jetty.tar.gz.asc jetty.tar.gz ; tar -xvf jetty.tar.gz --strip-components=1 ; sed -i '/jetty-logging/d' etc/jetty.conf ; mkdir -p "$JETTY_BASE" ; cd $JETTY_BASE ; case "$JETTY_VERSION" in "12."*) START_MODULES="server,http,ext,resources" ;; *) START_MODULES="server,http,deploy,ext,resources,jsp,jstl,websocket" ;; esac ; java -jar "$JETTY_HOME/start.jar" --create-startd --add-to-start="$START_MODULES" ; groupadd -r jetty && useradd -r -g jetty jetty ; chown -R jetty:jetty "$JETTY_HOME" "$JETTY_BASE" "$TMPDIR" ; usermod -d $JETTY_BASE jetty ; rm -rf /tmp/hsperfdata_root ; rm -fr $JETTY_HOME/jetty.tar.gz* ; rm -fr /jetty-keys $GNUPGHOME ; rm -rf /tmp/hsperfdata_root ; java -jar "$JETTY_HOME/start.jar" --list-config ; # buildkit
67.34 MB
15
WORKDIR /var/lib/jetty
32 B
16
COPY docker-entrypoint.sh generate-jetty-start.sh / # buildkit
1.66 KB
17
USER jetty
0 B
18
EXPOSE map[8080/tcp:{}]
0 B
19
ENTRYPOINT ["/docker-entrypoint.sh"]
0 B
20
CMD ["java" "-jar" "/usr/local/jetty/start.jar"]
0 B