From 96d8b5e00c4bc24a303577634c00da619c1d18e8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 3 Aug 2022 01:13:24 +0000 Subject: [PATCH] fix: build/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU2204-E2FSPROGS-2801319 - https://snyk.io/vuln/SNYK-UBUNTU2204-LIBTIRPC-2956571 - https://snyk.io/vuln/SNYK-UBUNTU2204-LIBTIRPC-2956571 - https://snyk.io/vuln/SNYK-UBUNTU2204-OPENSSL-2941376 - https://snyk.io/vuln/SNYK-UBUNTU2204-PERL-2789081 --- build/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index a678fba..fd01691 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -5,7 +5,7 @@ RUN go mod download ADD ./cmd/keyctl-unmask . RUN go build . -FROM ubuntu +FROM ubuntu:22.04 RUN apt update && apt install keyutils jq curl netcat net-tools lsof linux-tools-generic -y --no-install-recommends && apt-get clean && rm -rf /var/log/*log /var/lib/apt/lists/* /var/log/apt/* /var/lib/dpkg/*-old /var/cache/debconf/*-old COPY --from=0 /go/src/keyctl-unmask/keyctl-unmask /bin/keyctl-unmask CMD ["/bin/keyctl-unmask"] \ No newline at end of file