forked from hetznercloud/csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) · 732 Bytes
/
Dockerfile
File metadata and controls
21 lines (17 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine:3.22
RUN apk add --no-cache \
blkid \
btrfs-progs \
ca-certificates \
cryptsetup \
e2fsprogs \
e2fsprogs-extra \
xfsprogs \
xfsprogs-extra
COPY ./hcloud-csi-driver /bin/hcloud-csi-driver
# Creating compatibility wrapper scripts to avoid breaking existing installations
# that rely on separate entrypoints. This ensures upgrading only the image tag is possible.
RUN echo -e '#!/bin/sh\nexec /bin/hcloud-csi-driver -node "$@"' > /bin/hcloud-csi-driver-node && \
echo -e '#!/bin/sh\nexec /bin/hcloud-csi-driver -controller "$@"' > /bin/hcloud-csi-driver-controller && \
chmod +x /bin/hcloud-csi-driver-node /bin/hcloud-csi-driver-controller
ENTRYPOINT ["/bin/hcloud-csi-driver"]