DockerfileBase 579 B

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