forked from outscale/osc-bsu-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 830 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM golang:1.14.1-stretch
ARG DEBUG_IMAGE="disable"
RUN apt-get -y update && \
apt-get -y --no-install-recommends install ca-certificates=20161130+nmu1+deb9u1 \
e2fsprogs=1.43.4-2+deb9u1 \
xfsprogs=4.9.0+nmu1 \
util-linux=2.29.2-1+deb9u1 && \
if [ "${DEBUG_IMAGE}" = "enable" ]; then \
apt-get -y --no-install-recommends install gdb=7.12-6 jq=1.5+dfsg-1.3; \
echo "add-auto-load-safe-path /usr/local/go/src/runtime/runtime-gdb.py" >> /root/.gdbinit; \
fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
COPY . .
RUN make -j 4 && \
cp /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver /bin/aws-ebs-csi-driver
ENTRYPOINT ["/bin/aws-ebs-csi-driver"]