Add ssl to the final image

This commit is contained in:
Nikolai Rodionov 2024-05-05 19:52:41 +02:00
parent 780cecea90
commit 54aabc642d
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 2 additions and 1 deletions

View File

@ -9,4 +9,5 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o backend
FROM scratch
COPY --from=0 /app/backend /app
COPY --from=0 /etc/ssl /etc/ssl
ENTRYPOINT ["/app"]

View File

@ -70,7 +70,7 @@ func (h *Helm) PullChart(workdirPath string, release *ReleaseData) (path string,
}
client := action.NewPullWithOpts(action.WithConfig(config))
client.InsecureSkipTLSverify = true
client.Untar = true
client.UntarDir = workdirPath
client.SetRegistryClient(registry)