Merge pull request 'switch docker image to distroless' (#9) from distroless-docker into main
All checks were successful
ci/woodpecker/push/golang-test Pipeline was successful
All checks were successful
ci/woodpecker/push/golang-test Pipeline was successful
Reviewed-on: #9
This commit is contained in:
commit
37f297b4dc
1 changed files with 1 additions and 2 deletions
|
@ -20,10 +20,9 @@ RUN go build -o ntppool-exporter main.go
|
||||||
RUN chmod +x ntppool-exporter
|
RUN chmod +x ntppool-exporter
|
||||||
|
|
||||||
|
|
||||||
FROM debian:12 AS prod
|
FROM gcr.io/distroless/static-debian12 AS prod
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
||||||
COPY --from=build /var/app/ntppool-exporter /bin/
|
COPY --from=build /var/app/ntppool-exporter /bin/
|
||||||
|
|
||||||
LABEL maintainer="Adora Laura Kalb <adora@lila.network>"
|
LABEL maintainer="Adora Laura Kalb <adora@lila.network>"
|
||||||
|
|
Loading…
Reference in a new issue