From 001c8f917ace89655116e33a11f2a79a9c422e74 Mon Sep 17 00:00:00 2001 From: Andrea Panattoni Date: Mon, 19 Feb 2024 14:07:19 +0100 Subject: [PATCH] Remove `linux-headers` apk from Dockerfile (#84) Referring an exact version of the linux-headers package might break image building process, with errors like: ``` ``` Not putting a pinnged version make hadolint complaining: ``` Dockerfile:8 DL3018 warning: Pin versions in apk add. Instead of `apk add ` use `apk add =` ``` Signed-off-by: Andrea Panattoni Signed-off-by: Thomas Haller --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2f3e01b9..b3fc8947 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY . /usr/src/ib-sriov-cni ENV HTTP_PROXY $http_proxy ENV HTTPS_PROXY $https_proxy -RUN apk add --no-cache --virtual build-dependencies build-base=~0.5 linux-headers=~6.3 +RUN apk add --no-cache --virtual build-dependencies build-base=~0.5 WORKDIR /usr/src/ib-sriov-cni RUN make clean && \ make build