Skip tests during image build and download dependencies
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/graalvm/jdk-community:23 AS build
|
||||
FROM ghcr.io/graalvm/native-image-community:23 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -10,10 +10,12 @@ COPY .mvn ./.mvn
|
||||
COPY src ./src
|
||||
COPY openapi.yml .
|
||||
|
||||
RUN ./mvnw -Pnative native:compile
|
||||
RUN ./mvnw -Pnative native:compile -Dmaven.test.skip=true
|
||||
|
||||
FROM alpine
|
||||
|
||||
RUN apk add --no-cache libc6-compat
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/target/swisssign-challenge /app/swisssign-challenge
|
||||
|
Reference in New Issue
Block a user