Skip to content

Commit 1a438f2

Browse files
committed
chore: fix for high cves
1 parent a4646ff commit 1a438f2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM golang:1.23.8-bullseye AS builder
2-
RUN apt update && apt install -y libsystemd-dev
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends libsystemd-dev \
5+
&& rm -rf /var/lib/apt/lists/*
36
WORKDIR /tmp/src
47
COPY go.mod .
58
COPY go.sum .
@@ -8,6 +11,10 @@ COPY . .
811
ARG VERSION=unknown
912
RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent .
1013

14+
RUN apt-get purge -y python3 python3-pip python3-setuptools python3-urllib3 \
15+
&& apt-get autoremove -y \
16+
&& rm -rf /var/lib/apt/lists/*
17+
1118
FROM registry.access.redhat.com/ubi9/ubi
1219

1320
ARG VERSION=unknown

0 commit comments

Comments
 (0)