Skip to content

Commit 32cfcc3

Browse files
committed
rename Dockerfile.rhel to Dockerfile.rhel7 and multi-stage build
1 parent 34d97db commit 32cfcc3

File tree

2 files changed

+20
-25
lines changed

2 files changed

+20
-25
lines changed

Dockerfile.rhel

-25
This file was deleted.

Dockerfile.rhel7

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
2+
3+
ADD . /usr/src/sriov-network-device-plugin
4+
5+
WORKDIR /usr/src/sriov-network-device-plugin
6+
7+
ENV HTTP_PROXY $http_proxy
8+
ENV HTTPS_PROXY $https_proxy
9+
RUN make clean && \
10+
make build
11+
12+
FROM registry.svc.ci.openshift.org/ocp/4.0:base
13+
COPY --from=builder /usr/src/sriov-network-device-plugin/build/sriovdp /usr/bin/
14+
WORKDIR /
15+
16+
LABEL io.k8s.display-name="SRIOV Network Device Plugin"
17+
18+
ADD ./images/entrypoint.sh /
19+
20+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)