Files
yunzhupass-java-boot/Dockerfile
wangmingwei f0453ff3a3 初始代码
2026-04-21 16:49:46 +08:00

27 lines
874 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 基础镜像
FROM bellsoft/liberica-openjre-rocky:21
# FROM bellsoft/liberica-openjre-rocky:17
# FROM bellsoft/liberica-openjre-rocky:11
# FROM bellsoft/liberica-openjre-rocky:8
LABEL maintainer=yunzhupaas-team
# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 解决连接SQLServer安全错误
# 如您使用SQLServer数据库把以下注释取消
# COPY security/java.security /opt/java/openjdk/lib/security
# 指定运行时的工作目录
WORKDIR /data/yunzhupaassoft/javaApi
# 将构建产物jar包拷贝到运行时目录中
COPY yunzhupaas-admin/target/*.jar ./yunzhupaas-admin.jar
# 指定容器内运行端口
EXPOSE 30000
# 指定容器启动时要运行的命令
ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar yunzhupaas-admin.jar"]