zch0222 commited on
Commit
e8d4c4a
1 Parent(s): a48e4ed

remote jar

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -5,7 +5,8 @@ FROM openjdk:8-jre
5
  WORKDIR /app
6
 
7
  # 将上下文中名字为docker01-demo-xxx.jar复制到工作目录,同时修改名称为app.jar
8
- ADD target/note-chat-0.0.1-SNAPSHOT.jar app.jar
 
9
 
10
  # 让当前容器暴露8011端口,因为项目使用的端口为8011
11
  EXPOSE 7860
 
5
  WORKDIR /app
6
 
7
  # 将上下文中名字为docker01-demo-xxx.jar复制到工作目录,同时修改名称为app.jar
8
+ RUN wget https://chat-web-1253911311.cos.ap-shanghai.myqcloud.com/note-chat-0.0.1-SNAPSHOT.jar -O app.jar
9
+
10
 
11
  # 让当前容器暴露8011端口,因为项目使用的端口为8011
12
  EXPOSE 7860