Skip to content

Instantly share code, notes, and snippets.

@Aleksandr-Filichkin
Created August 14, 2021 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aleksandr-Filichkin/61651612b8d6e6faf06e2467195a0086 to your computer and use it in GitHub Desktop.
Save Aleksandr-Filichkin/61651612b8d6e6faf06e2467195a0086 to your computer and use it in GitHub Desktop.
FROM ghcr.io/graalvm/graalvm-ce:latest
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 function.zip bootstrap app
ENTRYPOINT ["./app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment