build: 多架构镜像构建
This commit is contained in:
parent
17089e9e8b
commit
b3fefa09e5
11
Dockerfile
11
Dockerfile
|
@ -5,14 +5,11 @@ LABEL maintainer="FIT2CLOUD <support@fit2cloud.com>"
|
||||||
ARG MS_VERSION=v1.18
|
ARG MS_VERSION=v1.18
|
||||||
ARG DEPENDENCY=backend/target/dependency
|
ARG DEPENDENCY=backend/target/dependency
|
||||||
|
|
||||||
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib
|
COPY ${DEPENDENCY}/BOOT-INF/lib /opt/lib
|
||||||
COPY ${DEPENDENCY}/META-INF /app/META-INF
|
COPY ${DEPENDENCY}/META-INF /opt/META-INF
|
||||||
COPY ${DEPENDENCY}/BOOT-INF/classes /app
|
COPY ${DEPENDENCY}/BOOT-INF/classes /opt
|
||||||
|
|
||||||
RUN mv /app/jmeter /opt/
|
ENV JAVA_CLASSPATH=/opt:/opt/lib/ms-jmeter-core-*.jar:/opt/lib/*
|
||||||
RUN mkdir -p /opt/jmeter/lib/junit
|
|
||||||
|
|
||||||
ENV JAVA_CLASSPATH=/app:/app/lib/ms-jmeter-core-*.jar:/app/lib/*
|
|
||||||
ENV JAVA_MAIN_CLASS=io.metersphere.Application
|
ENV JAVA_MAIN_CLASS=io.metersphere.Application
|
||||||
ENV AB_OFF=true
|
ENV AB_OFF=true
|
||||||
ENV MS_VERSION=${MS_VERSION}
|
ENV MS_VERSION=${MS_VERSION}
|
||||||
|
|
Loading…
Reference in New Issue