pellet.dockerfile 317 B

12345678910111213
  1. FROM gradle:jdk18 as gradle
  2. WORKDIR /sample
  3. COPY sample/build.gradle.kts build.gradle.kts
  4. COPY sample/src src
  5. RUN gradle clean shadowJar --no-daemon
  6. FROM openjdk:18-jdk-buster
  7. WORKDIR /sample
  8. COPY --from=gradle /sample/build/libs/sample-1.0.0-all.jar app.jar
  9. EXPOSE 8080
  10. CMD ["java", "-server", "-jar", "app.jar"]