13 lines
445 B
Docker
13 lines
445 B
Docker
|
ARG DISTRO_VERSION="alpine"
|
||
|
|
||
|
FROM golang:${DISTRO_VERSION} as builder
|
||
|
|
||
|
RUN apk add --update git
|
||
|
RUN git clone https://github.com/kuberenetes-learning-group/fuse-device-plugin.git --depth 1
|
||
|
WORKDIR fuse-device-plugin
|
||
|
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" .
|
||
|
|
||
|
FROM scratch
|
||
|
COPY --from=builder /go/fuse-device-plugin/fuse-device-plugin /fuse-device-plugin
|
||
|
ENTRYPOINT ["/fuse-device-plugin", "--mounts_allowed", "5000"]
|