Make Builder Platform agnostic
This commit is contained in:
parent
d4baf626ca
commit
1b8019af22
@ -1,5 +1,4 @@
|
||||
FROM frolvlad/alpine-glibc as builder
|
||||
RUN apk add git go g++
|
||||
FROM golang:buster as builder
|
||||
|
||||
RUN mkdir -p /go/src/github.com/chrislusf/
|
||||
RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
|
||||
@ -8,7 +7,7 @@ RUN cd /go/src/github.com/chrislusf/seaweedfs/weed && go install
|
||||
FROM alpine AS final
|
||||
RUN apk add fuse
|
||||
LABEL author="Chris Lu"
|
||||
COPY --from=builder /root/go/bin/weed /usr/bin/
|
||||
COPY --from=builder /go/bin/weed /usr/bin/
|
||||
COPY ./_output/seaweedfs-csi-driver /seaweedfs-csi-driver
|
||||
|
||||
RUN chmod +x /seaweedfs-csi-driver
|
||||
|
||||
Loading…
Reference in New Issue
Block a user