craftblock (2024.1.0-java17-alpine)

Published 2024-01-09 19:02:48 +00:00 by dev in dev/actions-images

Installation

docker pull git.nul.ie/dev/craftblock:2024.1.0-java17-alpine
sha256:a904704b70412a1abbafe49d69394c873b20c7c8911fe7c36b22dfcba39f2d01

About this package

Docker image that provides a Minecraft Server that will automatically download selected version at startup

Image Layers

ADD file:fc714080c3bcbbce7ac746a10d7b4355ffa36293a8d435d62cd5359ea8eb8364 in /
CMD ["/bin/sh"]
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
/bin/sh -c set -eux; apk add --no-cache bash fontconfig ttf-dejavu java-cacerts libretls zlib musl-locales musl-locales-lang binutils tzdata ; rm -rf /var/cache/apk/*
ENV JAVA_VERSION=jdk-17.0.9+9
/bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in amd64|x86_64) ESUM='70e5d108f51ae7c7b2435d063652df058723e303a18b4f72f17f75c5320052d3'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jre_x64_alpine-linux_hotspot_17.0.9_9.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file /tmp/openjdk.tar.gz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip;
/bin/sh -c set -eux; echo "Verifying install ..."; echo "java --version"; java --version; echo "Complete."
COPY file:8b8864b3e02a33a579dc216fd51b28a6047bc8eeaa03045b258980fe0cf7fcb3 in /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
ARG BUILD_FILES_REV=1
RUN |4 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= /bin/sh -c REV=${BUILD_FILES_REV} TARGET=${TARGETARCH}${TARGETVARIANT} /build/run.sh install-packages # buildkit
RUN |4 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= /bin/sh -c REV=${BUILD_FILES_REV} /build/run.sh setup-user # buildkit
COPY files/sudoers* /etc/sudoers.d # buildkit
EXPOSE map[25565/tcp:{}]
ARG APPS_REV=1
ARG GITHUB_BASEURL=https://github.com
ARG EASY_ADD_VERSION=0.8.2
ADD https://github.com/itzg/easy-add/releases/download/0.8.2/easy-add_linux_amd64 /usr/bin/easy-add # buildkit
RUN |7 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 /bin/sh -c chmod +x /usr/bin/easy-add # buildkit
ARG RESTIFY_VERSION=1.7.1
RUN |8 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 /bin/sh -c easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} --var version=${RESTIFY_VERSION} --var app=restify --file {{.app}} --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz # buildkit
ARG RCON_CLI_VERSION=1.6.4
RUN |9 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 RCON_CLI_VERSION=1.6.4 /bin/sh -c easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} --var version=${RCON_CLI_VERSION} --var app=rcon-cli --file {{.app}} --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz # buildkit
ARG MC_MONITOR_VERSION=0.12.6
RUN |10 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 RCON_CLI_VERSION=1.6.4 MC_MONITOR_VERSION=0.12.6 /bin/sh -c easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} --var version=${MC_MONITOR_VERSION} --var app=mc-monitor --file {{.app}} --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz # buildkit
ARG MC_SERVER_RUNNER_VERSION=1.9.1
RUN |11 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 RCON_CLI_VERSION=1.6.4 MC_MONITOR_VERSION=0.12.6 MC_SERVER_RUNNER_VERSION=1.9.1 /bin/sh -c easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} --var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz # buildkit
ARG MC_HELPER_VERSION=1.37.6
ARG MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/1.37.6
ARG MC_HELPER_REV=1
RUN |14 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 RCON_CLI_VERSION=1.6.4 MC_MONITOR_VERSION=0.12.6 MC_SERVER_RUNNER_VERSION=1.9.1 MC_HELPER_VERSION=1.37.6 MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/1.37.6 MC_HELPER_REV=1 /bin/sh -c curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz | tar -C /usr/share -zxf - && ln -s /usr/share/mc-image-helper-${MC_HELPER_VERSION}/bin/mc-image-helper /usr/bin # buildkit
VOLUME [/data]
WORKDIR /data
STOPSIGNAL SIGTERM
ENV TYPE=VANILLA VERSION=LATEST EULA= UID=1000 GID=1000
COPY scripts/start* / # buildkit
COPY bin/ /usr/local/bin/ # buildkit
COPY bin/mc-health /health.sh # buildkit
COPY files/* /image/ # buildkit
COPY files/auto /auto # buildkit
RUN |14 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 RCON_CLI_VERSION=1.6.4 MC_MONITOR_VERSION=0.12.6 MC_SERVER_RUNNER_VERSION=1.9.1 MC_HELPER_VERSION=1.37.6 MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/1.37.6 MC_HELPER_REV=1 /bin/sh -c curl -fsSL -o /image/Log4jPatcher.jar https://github.com/CreeperHost/Log4jPatcher/releases/download/v1.0.1/Log4jPatcher-1.0.1.jar # buildkit
RUN |14 TARGETOS=linux TARGETARCH=amd64 TARGETVARIANT= BUILD_FILES_REV= APPS_REV=1 GITHUB_BASEURL=https://github.com EASY_ADD_VERSION=0.8.2 RESTIFY_VERSION=1.7.1 RCON_CLI_VERSION=1.6.4 MC_MONITOR_VERSION=0.12.6 MC_SERVER_RUNNER_VERSION=1.9.1 MC_HELPER_VERSION=1.37.6 MC_HELPER_BASE_URL=https://github.com/itzg/mc-image-helper/releases/download/1.37.6 MC_HELPER_REV=1 /bin/sh -c dos2unix /start* /auto/* # buildkit
ENTRYPOINT ["/start"]
HEALTHCHECK &{["CMD-SHELL" "mc-health"] "5s" "0s" "1m0s" '\x18'}
/bin/sh -c apk add --no-cache -U git-lfs openssh

Labels

Key Value
io.buildah.version 1.19.6
org.opencontainers.image.authors Geoff Bourne <itzgeoff@gmail.com>
org.opencontainers.image.created 2024-01-06T15:37:38.479Z
org.opencontainers.image.description Docker image that provides a Minecraft Server that will automatically download selected version at startup
org.opencontainers.image.licenses Apache-2.0
org.opencontainers.image.revision 63adc7bc6ce5ff41afd1ceaecbbd2715d2c1886d
org.opencontainers.image.source https://github.com/itzg/docker-minecraft-server
org.opencontainers.image.title docker-minecraft-server
org.opencontainers.image.url https://github.com/itzg/docker-minecraft-server
org.opencontainers.image.version 2024.1.0-java17-alpine
Details
Container
2024-01-09 19:02:48 +00:00
15
OCI / Docker
linux/amd64
Geoff Bourne <itzgeoff@gmail.com>
Apache-2.0
203 MiB
Versions (1) View all