123456789101112131415161718192021222324 |
- # 选择运行时基础镜像
- FROM ubuntu:latest
- # 工作空间
- WORKDIR /usr/local/kona-jdk-17
- RUN apt-get update
- RUN apt-get upgrade -y
- RUN apt-get install -y language-pack-zh-hans libfreetype6-dev
- RUN locale-gen zh_CN.UTF-8
- ENV LC_ALL=zh_CN.UTF-8
- RUN apt-get clean
- # 添加jdk
- ADD TencentKona-17.0.9.b1-jdk_linux-x86_64.tar.gz .
- RUN mv TencentKona-17.0.9.b1/* .
- # 设置环境变量
- ENV JAVA_HOME=/usr/local/kona-jdk-17
- ENV JAVA_VERSION=17.0.9
- ENV TENCENTKONA_VERSION=17.0.9
- ENV PATH=/usr/local/kona-jdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|