refactor: 修改dockerfile, 避免复制重复的文件

This commit is contained in:
Captain.B 2021-07-01 12:47:52 +08:00 committed by 刘瑞斌
parent b298363d0b
commit 25fc536ee0
2 changed files with 1 additions and 13 deletions

View File

@ -16,10 +16,8 @@ COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app
COPY backend/target/classes/jmeter/ /app/jmeter/
RUN mv /app/jmeter /opt/
RUN mkdir -p /opt/jmeter/lib/junit
RUN cp -rf /app/jmeter /opt/
ENV JAVA_CLASSPATH=/app:/app/lib/*
ENV JAVA_MAIN_CLASS=io.metersphere.Application

View File

@ -519,16 +519,6 @@
<version>2.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/jmeter/lib/**/*.jar</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>