Skip to content

Commit e77f481

Browse files
committed
Går vekk fra appdynamics baseimage i dockerfile.
1 parent 8bb8c3e commit e77f481

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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
63
ENV PORT=8080
74
EXPOSE $PORT
5+
WORKDIR app
6+
CMD ["app.jar"]

build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ kotlin {
1616

1717
repositories {
1818
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")
2421
}
2522
mavenLocal()
2623
}

0 commit comments

Comments
 (0)