general: add s390x & ppc64le

This commit is contained in:
Lan Tian
2020-11-07 20:24:37 +08:00
parent 538699ccd2
commit 5000ad1bbf
5 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
FROM golang:buster AS step_0
ENV CGO_ENABLED=0 GOOS=linux GOARCH=s390x GO111MODULE=on
WORKDIR /root
COPY . .
RUN go build -o /frontend
FROM scratch AS step_1
COPY --from=step_0 /frontend /
ENTRYPOINT ["/frontend"]