forked from kuberenetes-learning-group/fuse-device-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
18 lines (13 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang:1.19-buster as builder
COPY . /code/fuse-device-plugin
WORKDIR /code/fuse-device-plugin
RUN CGO_ENABLED=0 go build
FROM debian:buster-slim
COPY --from=builder /code/fuse-device-plugin/fuse-device-plugin /usr/bin/fuse-device-plugin
# replace with your desire device count
CMD ["fuse-device-plugin", "--mounts_allowed", "5000"]
LABEL org.opencontainers.image.title="Fuse device plugin Docker Image" \
org.opencontainers.image.description="fuse-device-plugin" \
org.opencontainers.image.url="https://github.com/GDATASoftwareAG/fuse-device-plugin" \
org.opencontainers.image.source="https://github.com/GDATASoftwareAG/fuse-device-plugin" \
org.opencontainers.image.license="Apache 2.0"