Skip to content

Instantly share code, notes, and snippets.

Created August 14, 2021 13:43
What would you like to do?
RUN gu install native-image
WORKDIR /tmp/dist
ADD ./lambda-v3/target/lambda-v3-1.0-SNAPSHOT.jar ./app.jar
RUN native-image -jar ./app.jar --verbose --no-fallback
RUN microdnf install zip
ADD bootstrap bootstrap
RUN chmod +x bootstrap
RUN chmod +x ./app
RUN zip -j bootstrap app
ENTRYPOINT ["./app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment