Skip to content

Commit

Permalink
Bytter ut fat-jar og oppdaterer Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-santa committed Jan 7, 2025
1 parent 79460d6 commit 133611f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM gcr.io/distroless/java17-debian11
COPY build/libs/tms-varsel-api-all.jar app/app.jar
ENV PORT=8080
EXPOSE $PORT
WORKDIR app
CMD ["app.jar"]
FROM ghcr.io/navikt/baseimages/temurin:21

ENV JAVA_OPTS='-XX:MaxRAMPercentage=75'

COPY build/libs/*.jar ./
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
kotlin("jvm").version(Kotlin.version)

id(Shadow.pluginId) version (Shadow.version)
id(TmsJarBundling.plugin)

application
}
Expand Down

0 comments on commit 133611f

Please sign in to comment.