diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index d29dd4f26..cbfe15f1c 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -35,6 +35,7 @@ jobs: - 19zulu - 21 - 21zulu + - 22zulu steps: - uses: actions/checkout@v3 - uses: docker/setup-qemu-action@v2 diff --git a/README.md b/README.md index 93ad916e5..df4e7a15d 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,8 @@ * `registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_21` * [`java21 - Zulu`](https://github.com/pterodactyl-china/yolks/tree/master/java/21zulu) * `registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_21zulu` + * [`java22 - Zulu`](https://github.com/pterodactyl-china/yolks/tree/master/java/21zulu) + * `registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_22zulu` * [`nodejs`](https://github.com/pterodactyl-china/yolks/tree/master/nodejs) * [`node12`](https://github.com/pterodactyl-china/yolks/tree/master/nodejs/12) * `registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:nodejs_12` diff --git a/java/22zulu/Dockerfile b/java/22zulu/Dockerfile new file mode 100644 index 000000000..b1678ff2d --- /dev/null +++ b/java/22zulu/Dockerfile @@ -0,0 +1,23 @@ +FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:22 + +LABEL author="Vlssu" maintainer="vlssu@vlssu.com" +ENV DEBIAN_FRONTEND noninteractive + +LABEL org.opencontainers.image.source="https://github.com/pterodactyl-china/yolks" +LABEL org.opencontainers.image.licenses=MIT + +RUN apt-get update -y \ + && apt-get install -y lsof curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 tzdata iproute2 libstdc++6 locales \ + && useradd -m -d /home/container container \ + && locale-gen zh_CN.UTF-8 + +ENV LC_ALL=zh_CN.UTF-8 +ENV LANG=zh_CN.UTF-8 +ENV LANGUAGE=zh_CN.UTF-8 + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./../entrypoint.sh /entrypoint.sh +CMD [ "/bin/bash", "/entrypoint.sh" ]