Skip to content

Commit

Permalink
Support multi-arch docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
whywaita committed Sep 28, 2022
1 parent feaa350 commit 2c130d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ FROM golang:1.18 AS builder

WORKDIR /go/src/github.com/whywaita/myshoes

ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64

RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
RUN apt-get update -y \
&& apt-get install -y protobuf-compiler

ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64

COPY . .
RUN make build-linux

Expand All @@ -23,4 +23,4 @@ RUN apk add --no-cache ca-certificates \

COPY --from=builder /go/src/github.com/whywaita/myshoes/myshoes-linux-amd64 /app

CMD ["/app"]
CMD ["/app"]

0 comments on commit 2c130d2

Please sign in to comment.