From f96f769cd3e0ee0f13fb37f2786e3df0eed578cd Mon Sep 17 00:00:00 2001
From: Kenny Ho <Kenny.Ho@amd.com>
Date: Thu, 16 Feb 2023 18:08:40 -0500
Subject: [PATCH] Update alpine base image to fix vulnerability

libxml2 upgarded to 2.10.3-r1
libcrypto1.1 upgraded to 1.1.1t-r0
libssl1.1 upgraded to 1.1.1t-r0
---
 Dockerfile          | 4 ++--
 labeller.Dockerfile | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 49f722f6..030fc1c8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,7 +11,7 @@
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
-FROM docker.io/golang:1.19.2-alpine3.16
+FROM docker.io/golang:1.19.6-alpine3.17
 RUN apk --no-cache add git pkgconfig build-base libdrm-dev
 RUN apk --no-cache add hwloc-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
 RUN mkdir -p /go/src/github.com/RadeonOpenCompute/k8s-device-plugin
@@ -20,7 +20,7 @@ WORKDIR /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/cmd/k8s-device-pl
 RUN go install \
     -ldflags="-X main.gitDescribe=$(git -C /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/ describe --always --long --dirty)" 
 
-FROM alpine:3.16
+FROM alpine:3.17
 LABEL \
     org.opencontainers.image.source="https://github.com/RadeonOpenCompute/k8s-device-plugin" \
     org.opencontainers.image.authors="Kenny Ho <Kenny.Ho@amd.com>" \
diff --git a/labeller.Dockerfile b/labeller.Dockerfile
index 2e7b0109..1e444ace 100644
--- a/labeller.Dockerfile
+++ b/labeller.Dockerfile
@@ -11,7 +11,7 @@
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
-FROM docker.io/golang:1.19.2-alpine3.16
+FROM docker.io/golang:1.19.6-alpine3.17
 RUN apk --no-cache add git pkgconfig build-base libdrm-dev
 RUN mkdir -p /go/src/github.com/RadeonOpenCompute/k8s-device-plugin
 ADD . /go/src/github.com/RadeonOpenCompute/k8s-device-plugin
@@ -19,7 +19,7 @@ WORKDIR /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/cmd/k8s-node-labe
 RUN go install \
     -ldflags="-X main.gitDescribe=$(git -C /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/ describe --always --long --dirty)" 
 
-FROM alpine:3.16
+FROM alpine:3.17
 LABEL \
     org.opencontainers.image.source="https://github.com/RadeonOpenCompute/k8s-device-plugin" \
     org.opencontainers.image.authors="Kenny Ho <Kenny.Ho@amd.com>" \
-- 
GitLab