Skip to content

Commit

Permalink
fix: docker container working now
Browse files Browse the repository at this point in the history
  • Loading branch information
aumer-amr committed Jan 26, 2025
1 parent 155e0e2 commit 57700f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ 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
WORKDIR /build/internal/gatus-operator
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ../../gatus-operator

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

EXPOSE 8081/tcp
ENTRYPOINT ["/gatus-operator"]

0 comments on commit 57700f2

Please sign in to comment.