build: 多架构镜像构建

This commit is contained in:
CaptainB 2022-02-17 13:20:16 +08:00 committed by 刘瑞斌
parent 25d5a16134
commit 1f5df98c3a
1 changed files with 4 additions and 7 deletions

View File

@ -5,14 +5,11 @@ LABEL maintainer="FIT2CLOUD <support@fit2cloud.com>"
ARG MS_VERSION=dev ARG MS_VERSION=dev
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}