FROM golang:1.20-alpine as builder COPY src /fuse-device-plugin WORKDIR /fuse-device-plugin RUN pwd && ls -laR RUN CGO_ENABLED=0 go build -ldflags "-s -w" . FROM scratch COPY --from=builder /fuse-device-plugin/fuse-device-plugin /fuse-device-plugin ENTRYPOINT ["/fuse-device-plugin", "--mounts_allowed", "40"]