Skip to content

Commit

Permalink
Merge pull request #147 from Revolyssup/removehard
Browse files Browse the repository at this point in the history
Remove amd hardcoding
  • Loading branch information
leecalcote authored Sep 19, 2022
2 parents a9211c4 + ac8204a commit 3c891fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ RUN go mod download
# Copy the go source
COPY . .
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags="-w -s -X main.version=$GIT_VERSION -X main.commitsha=$GIT_COMMITSHA" -a -o meshery-meshsync main.go
RUN CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-w -s -X main.version=$GIT_VERSION -X main.commitsha=$GIT_COMMITSHA" -a -o meshery-meshsync main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/base-debian10
WORKDIR /
ENV GODISTRO="debian"
ENV GOARCH="amd64"
COPY --from=builder /build/meshery-meshsync .
ENTRYPOINT ["/meshery-meshsync"]

0 comments on commit 3c891fd

Please sign in to comment.