fuse-device-plugin/Containerfile

17 lines
460 B
Docker

FROM docker.io/library/golang:1.21 AS build
WORKDIR /go/src/fuse-device-plugin
RUN git clone https://github.com/kuberenetes-learning-group/fuse-device-plugin.git .
RUN CGO_ENABLED=0 GO111MODULE=on go build && strip -s fuse-device-plugin
FROM registry.fedoraproject.org/fedora-minimal:38
COPY --from=build /go/src/fuse-device-plugin/fuse-device-plugin /usr/local/bin/fuse-device-plugin
ENTRYPOINT ["fuse-device-plugin"]
CMD ["--mounts_allowed", "5000"]