Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker files after hadolint check
- Loading branch information
1 parent
538f9d4
commit c0fdaf0
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
FROM golang:alpine as builder | ||
|
||
ADD . /usr/src/sriov-cni | ||
COPY . /usr/src/sriov-cni | ||
|
||
ENV HTTP_PROXY $http_proxy | ||
ENV HTTPS_PROXY $https_proxy | ||
|
||
RUN apk add --update --virtual build-dependencies build-base linux-headers && \ | ||
cd /usr/src/sriov-cni && \ | ||
WORKDIR /usr/src/sriov-cni | ||
RUN apk add --no-cache --virtual build-dependencies build-base=~0.5 && \ | ||
make clean && \ | ||
make build | ||
|
||
FROM alpine | ||
FROM alpine:3 | ||
COPY --from=builder /usr/src/sriov-cni/build/sriov /usr/bin/ | ||
WORKDIR / | ||
|
||
LABEL io.k8s.display-name="SR-IOV CNI" | ||
|
||
ADD ./images/entrypoint.sh / | ||
COPY ./images/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters