-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-old
31 lines (26 loc) · 959 Bytes
/
Dockerfile-old
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
FROM golang:1.13.6-alpine AS build-env
RUN apk update && apk add git make
COPY . /go/src/github.com/capitalonline/cds-csi-driver
RUN cd /go/src/github.com/capitalonline/cds-csi-driver && make container-binary
FROM alpine:3.6
RUN apk update --no-cache && apk add ca-certificates
ARG S3FS_VERSION=v1.82
RUN apk --update add --virtual build-dependencies \
build-base alpine-sdk \
fuse fuse-dev \
automake autoconf git \
libressl-dev \
curl-dev libxml2-dev \
ca-certificates
# RUN apk del .build-dependencies
RUN git clone https://github.com/s3fs-fuse/s3fs-fuse.git && \
cd s3fs-fuse \
git checkout tags/${S3FS_VERSION} && \
./autogen.sh && \
./configure --prefix=/usr && \
make && \
make install && \
s3fs --version
COPY --from=build-env /cds-csi-driver /cds-csi-driver
RUN apk add udev && apk add e2fsprogs && apk add xfsprogs && apk add nvme-cli
ENTRYPOINT ["/cds-csi-driver"]