Skip to content

Commit

Permalink
fix: docker build?
Browse files Browse the repository at this point in the history
  • Loading branch information
aumer-amr committed Jan 26, 2025
1 parent b3739ad commit 3df5f8b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Build the manager binary
FROM golang:1.23.4 as builder
ARG TARGETOS
ARG TARGETARCH

WORKDIR /build
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ./internal/gatus-operator

FROM gcr.io/distroless/static:nonroot@sha256:91ca4720011393f4d4cab3a01fa5814ee2714b7d40e6c74f2505f74168398ca9
WORKDIR /
COPY --from=builder /build/internal/gatus-operator /gatus-operator
USER 65532:65532

ENTRYPOINT ["/gatus-operator"]

0 comments on commit 3df5f8b

Please sign in to comment.