-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-jdk21' of https://gitee.com/zhijiantianya/yudao-…
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## AdoptOpenJDK 停止发布 OpenJDK 二进制,而 Eclipse Temurin 是它的延伸,提供更好的稳定性 | ||
## 感谢复旦核博士的建议!灰子哥,牛皮! | ||
FROM eclipse-temurin:21-jre | ||
|
||
## 创建目录,并使用它作为工作目录 | ||
RUN mkdir -p /yudao-module-crm-biz | ||
WORKDIR /yudao-module-crm-biz | ||
## 将后端项目的 Jar 文件,复制到镜像中 | ||
COPY ./target/yudao-module-crm-biz.jar app.jar | ||
|
||
## 设置 TZ 时区 | ||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖 | ||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m" | ||
|
||
## 暴露后端项目的 48089 端口 | ||
EXPOSE 48089 | ||
|
||
## 启动后端项目 | ||
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## AdoptOpenJDK 停止发布 OpenJDK 二进制,而 Eclipse Temurin 是它的延伸,提供更好的稳定性 | ||
## 感谢复旦核博士的建议!灰子哥,牛皮! | ||
FROM eclipse-temurin:21-jre | ||
|
||
## 创建目录,并使用它作为工作目录 | ||
RUN mkdir -p /yudao-module-erp-biz | ||
WORKDIR /yudao-module-erp-biz | ||
## 将后端项目的 Jar 文件,复制到镜像中 | ||
COPY ./target/yudao-module-erp-biz.jar app.jar | ||
|
||
## 设置 TZ 时区 | ||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖 | ||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m" | ||
|
||
## 暴露后端项目的 48088 端口 | ||
EXPOSE 48088 | ||
|
||
## 启动后端项目 | ||
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar |