refactor: 修改dockerfile, 避免复制重复的文件
This commit is contained in:
parent
b298363d0b
commit
25fc536ee0
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue