12345678910111213141516171819202122232425262728 |
- # 选择运行时基础镜像
- FROM ubuntu:latest
- # 工作空间
- WORKDIR /usr/local/kona-jdk-17
- RUN apt-get update
- RUN apt-get install -y language-pack-zh-hans
- 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
- #EXPOSE 9500
- #RUN mkdir "/app"
- #WORKDIR /app
- #COPY target/*.jar /app/app.jar
- #ENTRYPOINT ["java","-jar","app.jar"]
|