Use local Maven build image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
FROM docker.m.daocloud.io/library/maven:3.9.8-eclipse-temurin-17 AS build
|
FROM cdchen-maven:3.9.8-eclipse-temurin-17-aliyun AS build
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
COPY pom.xml .
|
COPY pom.xml .
|
||||||
|
RUN mvn -B dependency:go-offline -DskipTests
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN mvn -B clean package -DskipTests
|
RUN mvn -B clean package -DskipTests
|
||||||
|
|
||||||
FROM docker.m.daocloud.io/library/eclipse-temurin:17-jre-alpine
|
FROM cdchen-jre:17-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /workspace/target/backend-0.0.1-SNAPSHOT.jar app.jar
|
COPY --from=build /workspace/target/backend-0.0.1-SNAPSHOT.jar app.jar
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
Reference in New Issue
Block a user