Skip to content

Commit

Permalink
新增 Java 22
Browse files Browse the repository at this point in the history
  • Loading branch information
vlssu committed May 22, 2024
1 parent c24c0bb commit 3672423
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- 19zulu
- 21
- 21zulu
- 22zulu
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
23 changes: 23 additions & 0 deletions java/22zulu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM --platform=$TARGETOS/$TARGETARCH azul/zulu-openjdk:22

LABEL author="Vlssu" maintainer="[email protected]"
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" ]

0 comments on commit 3672423

Please sign in to comment.