build: 前后端分开打包,使用dockerfile统一copy

This commit is contained in:
CaptainB 2022-04-20 18:24:39 +08:00 committed by 刘瑞斌
parent fc7e396b7b
commit 167cb4028c

View File

@ -9,9 +9,9 @@ COPY ${DEPENDENCY}/BOOT-INF/lib /opt/lib
COPY ${DEPENDENCY}/META-INF /opt/META-INF
COPY ${DEPENDENCY}/BOOT-INF/classes /opt
ADD frontend/src/assets/theme/index.css /opt/classes/static/css/index.css
ADD frontend/dist/*[^.html] /opt/classes/static/
ADD frontend/dist/*.html /opt/classes/public/
ADD frontend/src/assets/theme/index.css /opt/static/css/index.css
ADD frontend/dist/*[^.html] /opt/static/
ADD frontend/dist/*.html /opt/public/
ENV JAVA_CLASSPATH=/opt:/opt/lib/ms-jmeter-core.jar:/opt/lib/*
ENV JAVA_MAIN_CLASS=io.metersphere.Application