-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
30 lines (25 loc) · 1015 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
24
25
26
27
28
29
30
FROM ubuntu:16.04
# Default values
ARG git_commit_id=unknown
ARG git_remote_url=unknown
ARG build_date=unknown
ARG jenkins_build_number=unknown
ARG REPO_SOURCE_URL=blank
ARG BUILD_URL=blank
# Add Labels to image to show build details
LABEL git-commit-id=${git_commit_id}
LABEL git-remote-url=${git_remote_url}
LABEL build-date=${build_date}
LABEL jenkins-build-number=${jenkins_build_number}
LABEL razee.io/source-url="${REPO_SOURCE_URL}"
LABEL razee.io/build-url="${BUILD_URL}"
RUN apt-get update && apt-get install -y --no-install-recommends nfs-common && \
apt-get install -y udev && \
apt-get install -y --no-install-recommends apt && \
apt-get install -y --no-install-recommends ca-certificates xfsprogs && \
apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /home/ibm-csi-drivers/
ADD ibm-vpc-block-csi-driver /home/ibm-csi-drivers
RUN chmod +x /home/ibm-csi-drivers/ibm-vpc-block-csi-driver
USER 2121:2121
ENTRYPOINT ["/home/ibm-csi-drivers/ibm-vpc-block-csi-driver"]