fuse-device-plugin/Dockerfile

11 lines
294 B
Docker
Raw Normal View History

FROM golang:1.23-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 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"]