refactor: 修改dockerfile, 避免复制重复的文件
This commit is contained in:
parent
9feadef661
commit
6782432f5c
|
@ -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
|
||||
|
|
|
@ -513,16 +513,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