FROM openjdk:17 AS builder WORKDIR /usr/src/application COPY ./ ./ RUN javac Solution.java RUN jar cfe solution.jar Solution *.class FROM gcr.io/distroless/java17-debian11:latest AS runner WORKDIR /usr/src/application COPY --from=builder /usr/src/application/solution.jar ./ CMD ["./solution.jar"]