From b3fefa09e588363b4418ab3ae502bd6d976207a7 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 17 Feb 2022 13:20:16 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=A4=9A=E6=9E=B6=E6=9E=84=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 055d450ed0..5953dfcacd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,11 @@ LABEL maintainer="FIT2CLOUD " ARG MS_VERSION=v1.18 ARG DEPENDENCY=backend/target/dependency -COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib -COPY ${DEPENDENCY}/META-INF /app/META-INF -COPY ${DEPENDENCY}/BOOT-INF/classes /app +COPY ${DEPENDENCY}/BOOT-INF/lib /opt/lib +COPY ${DEPENDENCY}/META-INF /opt/META-INF +COPY ${DEPENDENCY}/BOOT-INF/classes /opt -RUN mv /app/jmeter /opt/ -RUN mkdir -p /opt/jmeter/lib/junit - -ENV JAVA_CLASSPATH=/app:/app/lib/ms-jmeter-core-*.jar:/app/lib/* +ENV JAVA_CLASSPATH=/opt:/opt/lib/ms-jmeter-core-*.jar:/opt/lib/* ENV JAVA_MAIN_CLASS=io.metersphere.Application ENV AB_OFF=true ENV MS_VERSION=${MS_VERSION}