-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (28 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This Dockerfile is intended for usage with GoReleaser, which expects that a prebuilt go binary is copied into the image.
# To avoid having to maintain and use two different Dockerfiles(one for local development and one for releasing) we follow the GoReleaser approach for local development as well.
# Please build your image using `make docker` instead of a direct docker command.
FROM alpine:3.21
RUN apk update
RUN apk add --no-cache \
e2fsprogs \
e2fsprogs-extra \
xfsprogs \
xfsprogs-extra \
cryptsetup \
ca-certificates \
blkid \
btrfs-progs
RUN update-ca-certificates
COPY exoscale-csi-driver /
ARG VERSION
ARG VCS_REF
ARG BUILD_DATE
LABEL org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vcs-url="https://github.com/exoscale/exoscale-csi-driver" \
org.label-schema.version=${VERSION} \
org.label-schema.name="exoscale-csi-driver" \
org.label-schema.vendor="Exoscale" \
org.label-schema.description="Exoscale Scalable Blockstorage Container Storage Interface Driver" \
org.label-schema.schema-version="1.0"
ENTRYPOINT ["/exoscale-csi-driver"]