Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Update observation hub Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Dec 22, 2023
1 parent ef2bafd commit 5e49d63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmds/observation-hub/Dockerfile
Expand Up @@ -5,9 +5,9 @@
# Run: docker build -f cmds/observation-hub/Dockerfile -t safing/observation-hub:latest .
# Check With: docker run -ti --rm safing/observation-hub:latest --help

# golang 1.20.7 linux/amd64 on debian bullseye
# https://github.com/docker-library/golang/blob/master/1.20/bullseye/Dockerfile
FROM golang:1.21-bullseye as builder
# golang 1.21 linux/amd64 on debian bookworm
# https://github.com/docker-library/golang/blob/master/1.21/bookworm/Dockerfile
FROM golang:1.21-bookworm as builder

# Ensure ca-certficates are up to date
RUN update-ca-certificates
Expand All @@ -29,7 +29,7 @@ CGO_ENABLED=0 ./build -o /go/bin/observation-hub

# Use static image
# https://github.com/GoogleContainerTools/distroless
FROM gcr.io/distroless/static-debian11
FROM gcr.io/distroless/static-debian12

# Copy our static executable
COPY --from=builder --chmod=0755 /go/bin/observation-hub /go/bin/observation-hub
Expand Down

0 comments on commit 5e49d63

Please sign in to comment.