liuchen
9 months ago
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||||
|
## AdoptOpenJDK 停止发布 OpenJDK 二进制,而 Eclipse Temurin 是它的延伸,提供更好的稳定性 |
||||
|
## 感谢复旦核博士的建议!灰子哥,牛皮! |
||||
|
FROM java:8 |
||||
|
|
||||
|
## 创建目录,并使用它作为工作目录 |
||||
|
RUN mkdir -p /opt/win-server |
||||
|
WORKDIR /opt/win-server |
||||
|
## 将后端项目的 Jar 文件,复制到镜像中 |
||||
|
COPY ./target/rocketmq-dashboard-1.0.0.jar rocketmq-dashboard-1.0.0.jar |
||||
|
|
||||
|
## 设置 TZ 时区 |
||||
|
ENV TZ=Asia/Shanghai |
||||
|
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖 |
||||
|
ENV JAVA_OPTS="" |
||||
|
|
||||
|
## 应用参数 |
||||
|
ENV ARGS="" |
||||
|
|
||||
|
## 暴露后端项目的 23880 端口 |
||||
|
EXPOSE 23880 |
||||
|
|
||||
|
## 启动后端项目 |
||||
|
CMD java ${JAVA_OPTS} -jar rocketmq-dashboard-1.0.0.jar $ARGS |
Loading…
Reference in new issue