Skip to content

Commit

Permalink
fixup! Adding simplified diagram to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredolopezzz committed Jan 27, 2025
1 parent 706db44 commit cd728f5
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
@@ -1,5 +1,7 @@
# Build the manager binary
FROM golang:1.23.5 AS builder
FROM --platform=$BUILDPLATFORM golang:1.23.5 AS builder

ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -11,7 +13,7 @@ COPY cmd/observability-operator/main.go cmd/observability-operator/main.go
COPY pkg/ pkg/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager cmd/observability-operator/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build -a -o manager cmd/observability-operator/main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Expand Down

0 comments on commit cd728f5

Please sign in to comment.