Skip to content

Commit

Permalink
Merge pull request #19 from JonasFranke/devGradleBaseImg
Browse files Browse the repository at this point in the history
Migrate to gradle base img
  • Loading branch information
JonasFranke authored Aug 11, 2023
2 parents 67bb1e0 + 2871f92 commit 64035ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM openjdk:17.0.2
RUN cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN mkdir /app
COPY build/libs/*.jar /app/app.jar
FROM gradle:jdk17-jammy
WORKDIR /app
CMD ["java", "-jar", "app.jar"]
COPY build.gradle settings.gradle ./
COPY src ./src
RUN gradle clean shadowJar
ENTRYPOINT ["java", "-jar", "build/libs/ddsb-1.0-SNAPSHOT-all.jar"]

0 comments on commit 64035ac

Please sign in to comment.