This commit is contained in:
2024-08-06 19:17:39 +08:00
parent 057beca6f9
commit 5b24827455
24 changed files with 562 additions and 507 deletions

View File

@@ -3,7 +3,7 @@ FROM registry.cn-hangzhou.aliyuncs.com/zeroware/javaapp-builder:latest as builde
WORKDIR source
COPY ./ ./
ARG JAR_FILE=entrance/web/target/*.jar
RUN --mount=type=cache,target=/root/.m2/repository,rw --mount=type=tmpfs,target=/root/.m2/repository/{{ .groupId | replace "." "/" }} mvnd clean package -Dmaven.test.skip=true
RUN --mount=type=cache,target=/root/.m2/repository,rw --mount=type=tmpfs,target=/root/.m2/repository/com/hande mvnd clean package -Dmaven.test.skip=true
RUN cp ${JAR_FILE} app.jar
RUN java -Djarmode=layertools -jar ./app.jar extract