File tree 4 files changed +9
-10
lines changed
src/main/kotlin/no/nav/tms/min/side/proxy
4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM gcr.io/distroless/java17-debian11
2
- COPY build/libs/tms-min-side-proxy-all.jar app/app.jar
3
- ENV PORT=8080
4
- EXPOSE $PORT
5
- WORKDIR app
6
- CMD ["app.jar" ]
1
+ FROM ghcr.io/navikt/baseimages/temurin:21
2
+
3
+ ENV JAVA_OPTS='-XX:MaxRAMPercentage=75'
4
+
5
+ COPY build/libs/*.jar ./
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
4
plugins {
5
5
kotlin(" jvm" ).version(Kotlin .version)
6
6
7
- id(Shadow .pluginId) version ( Shadow .version )
7
+ id(TmsJarBundling .plugin )
8
8
9
9
application
10
10
}
11
11
12
12
kotlin {
13
13
jvmToolchain {
14
- languageVersion.set(JavaLanguageVersion .of(17 ))
14
+ languageVersion.set(JavaLanguageVersion .of(21 ))
15
15
}
16
16
}
17
17
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.12 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ fun Application.proxyApi(
138
138
}
139
139
140
140
private fun Application.configureShutdownHook (contentFetcher : ContentFetcher ) {
141
- environment. monitor.subscribe(ApplicationStopping ) {
141
+ monitor.subscribe(ApplicationStopping ) {
142
142
contentFetcher.shutDown()
143
143
}
144
144
}
You can’t perform that action at this time.
0 commit comments