graalvmjs 已经支持jdk 22了,基于官方提供的更新了新版本的docker 镜像,方便使用
Dockerfile
FROM debian:bullseye-backports
LABEL author="rongfengliang"
LABEL email="[email protected]"
WORKDIR /opt/
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone
COPY graalnodejs-24.0.1-linux-amd64/ /opt/nodejs/
ENV PATH=/opt/nodejs/bin:/opt/nodejs/jvm/bin/:$PATH
说明
docker 镜像我已经push docker hub 了可以直接使用dalongrong/graaljs:24.0.1
参考资料
https://www.graalvm.org/latest/reference-manual/js/
https://github.com/oracle/graaljs/releases