Skip to content

Commit

Permalink
Created Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuPert committed Jun 2, 2024
1 parent d5dac21 commit 225ac19
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Builder
FROM gradle:jdk17 AS BUILDER

WORKDIR /src
COPY . /src
RUN gradle build --no-daemon


# Runtime
FROM amazoncorretto:17-alpine-jdk

COPY --from=BUILDER /src/build/libs/eurostat-0.0.1-SNAPSHOT.jar app.jar

ENTRYPOINT [ "java", "-jar", "app.jar" ]
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ javadoc {
source = sourceSets.main.allJava
}

jar {
archiveBaseName = 'eurostat-app'
archiveVersion = '0.1.0'
manifest {
attributes 'Main-Class': 'com.samupert.univpm.eurostat.EurostatApplication'
}
}

0 comments on commit 225ac19

Please sign in to comment.