Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update alpine image in Dockerfile #414

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions images/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:alpine3.12 as builder
FROM golang:1.17-alpine as builder

COPY . /usr/src/sriov-network-device-plugin
ADD images/ddptool-1.0.1.12.tar.gz /tmp/ddptool/

ENV HTTP_PROXY $http_proxy
ENV HTTPS_PROXY $https_proxy
RUN apk add --no-cache --virtual build-dependencies build-base linux-headers
RUN apk add --no-cache --virtual build-dependencies build-base linux-headers git
zshi-redhat marked this conversation as resolved.
Show resolved Hide resolved

WORKDIR /usr/src/sriov-network-device-plugin
RUN make clean && \
Expand All @@ -14,7 +14,7 @@ RUN make clean && \
WORKDIR /tmp/ddptool
adrianchiris marked this conversation as resolved.
Show resolved Hide resolved
RUN make

FROM alpine:3.12
FROM alpine:3
zshi-redhat marked this conversation as resolved.
Show resolved Hide resolved
RUN apk add --no-cache hwdata-pci
COPY --from=builder /usr/src/sriov-network-device-plugin/build/sriovdp /usr/bin/
COPY --from=builder /tmp/ddptool/ddptool /usr/bin/
Expand Down