DockerfileBase 654 B

12345678910111213141516171819202122232425262728
  1. # 选择运行时基础镜像
  2. FROM ubuntu:latest
  3. # 工作空间
  4. WORKDIR /usr/local/kona-jdk-17
  5. RUN apt-get update
  6. RUN apt-get install -y language-pack-zh-hans
  7. RUN locale-gen zh_CN.UTF-8
  8. ENV LC_ALL=zh_CN.UTF-8
  9. RUN apt-get clean
  10. # 添加jdk
  11. ADD TencentKona-17.0.9.b1-jdk_linux-x86_64.tar.gz .
  12. RUN mv TencentKona-17.0.9.b1/* .
  13. # 设置环境变量
  14. ENV JAVA_HOME=/usr/local/kona-jdk-17
  15. ENV JAVA_VERSION=17.0.9
  16. ENV TENCENTKONA_VERSION=17.0.9
  17. ENV PATH=/usr/local/kona-jdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  18. #EXPOSE 9500
  19. #RUN mkdir "/app"
  20. #WORKDIR /app
  21. #COPY target/*.jar /app/app.jar
  22. #ENTRYPOINT ["java","-jar","app.jar"]