build: 使用 COPY 命令替代 ADD

This commit is contained in:
BugKing 2020-11-17 09:42:04 +08:00
parent 62f32e5d38
commit 656ae4d4b5
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@ ARG MS_VERSION=dev
RUN mkdir -p /opt/apps && mkdir -p /opt/jmeter RUN mkdir -p /opt/apps && mkdir -p /opt/jmeter
ADD backend/target/backend-1.4.jar /opt/apps COPY backend/target/backend-1.4.jar /opt/apps
ADD backend/target/classes/jmeter/ /opt/jmeter/ COPY backend/target/classes/jmeter/ /opt/jmeter/
ENV JAVA_APP_JAR=/opt/apps/backend-1.4.jar ENV JAVA_APP_JAR=/opt/apps/backend-1.4.jar