fuse-device-plugin/Dockerfile

13 lines
314 B
Docker
Raw Normal View History

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