Commit 34c6e257 by jianan

Dockerfile2

parent 7058d842
......@@ -5,7 +5,7 @@ LABEL maintainer="zxm<2060197959@qq.com>"
# 创建目录
RUN mkdir -p /home/app
# 拷贝项目jar - 使用可执行的 fat JAR
COPY target/yd-csf-api-1.0-SNAPSHOT-exec.jar /home/app/yd-csf-api.jar
COPY target/yd-csf-api-1.0-SNAPSHOT.jar /home/app/yd-csf-api.jar
# 执行命令启动jar
ENTRYPOINT ["java", "-jar", "/home/app/yd-csf-api.jar"]
# 暴露端口
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment