Skip to content

Instantly share code, notes, and snippets.

@ahndmal
Created January 30, 2022 16:30
Show Gist options
  • Save ahndmal/b42812307a179e998de1bfaf02709a1b to your computer and use it in GitHub Desktop.
Save ahndmal/b42812307a179e998de1bfaf02709a1b to your computer and use it in GitHub Desktop.
FROM gradle:7.2-jdk11 AS GR_BUILD
#WORKDIR app
COPY ./ ./
RUN gradle bootJar
FROM adoptopenjdk:11
COPY --from=GR_BUILD /home/gradle/build/libs/*.jar ./app.jar
CMD ["/bin/sh", "-c", "java -jar app*.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment