Skip to content

Commit

Permalink
Merge pull request #414 from adrianchiris/update-alpine-in-dockerfile
Browse files Browse the repository at this point in the history
Update alpine image in Dockerfile
  • Loading branch information
zshi-redhat authored Apr 12, 2022
2 parents 2ef2867 + ccd8664 commit 58eb366
Showing 1 changed file with 3 additions and 3 deletions.
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

WORKDIR /usr/src/sriov-network-device-plugin
RUN make clean && \
Expand All @@ -14,7 +14,7 @@ RUN make clean && \
WORKDIR /tmp/ddptool
RUN make

FROM alpine:3.12
FROM alpine:3
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

0 comments on commit 58eb366

Please sign in to comment.