FROM gcr.io/distroless/java-debian11:11

COPY ./target/${JAR_FILE} /app/<%= artifact_id %>.<%= type %>

WORKDIR /app
CMD ["/app/<%= artifact_id %>.<%= type %>"]

FROM gcr.io/distroless/java-debian11:11
ARG JAR_FILE=<%= artifact_id %>-<%= version %>.<%= type %>

COPY --chown=nonroot:nonroot ./target/${JAR_FILE} /app/<%= artifact_id %>.<%= type %>
WORKDIR /app

CMD ["/app/<%= artifact_id %>.<%= type %>"]

Fix permission issue when executing jar file.
Fix permission issue when executing jar file.
