File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM navikt/java:17-appdynamics
2
- COPY build/libs/tms-varsel-api-all.jar /app/app.jar
3
- ENV JAVA_OPTS="-XX:MaxRAMPercentage=75 \
4
- -XX:+HeapDumpOnOutOfMemoryError \
5
- -XX:HeapDumpPath=/oom-dump.hprof"
1
+ FROM gcr.io/distroless/java17-debian11
2
+ COPY build/libs/tms-varsel-api-all.jar app/app.jar
6
3
ENV PORT=8080
7
4
EXPOSE $PORT
5
+ WORKDIR app
6
+ CMD ["app.jar" ]
Original file line number Diff line number Diff line change @@ -16,11 +16,8 @@ kotlin {
16
16
17
17
repositories {
18
18
mavenCentral()
19
- maven(" https://maven.pkg.github.com/navikt/*" ) {
20
- credentials {
21
- username = System .getenv(" GITHUB_ACTOR" )? : " x-access-token"
22
- password = System .getenv(" GITHUB_TOKEN" )? : project.findProperty(" githubPassword" ) as String
23
- }
19
+ maven {
20
+ url = uri(" https://github-package-registry-mirror.gc.nav.no/cached/maven-release" )
24
21
}
25
22
mavenLocal()
26
23
}
You can’t perform that action at this time.
0 commit comments