Skip to content

Commit

Permalink
fix distroless docker (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi authored Mar 3, 2025
1 parent 41f0c01 commit ab9d403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misc/distroless_tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM openjdk:17-jdk-slim AS build-env
FROM gradle:jdk21 AS build-env
COPY . /app/
WORKDIR /app
RUN cd validator && gradle wrapper
RUN /app/validator/bin/build

FROM gcr.io/distroless/java17-debian12
FROM gcr.io/distroless/java21-debian12
WORKDIR /app
COPY --from=build-env /app/validator/build/libs/ /app/
COPY gencode/java/udmi/schema /app/schema
Expand Down

0 comments on commit ab9d403

Please sign in to comment.