Unverified Commit 3c9ca3fc authored by dagil-nvidia's avatar dagil-nvidia Committed by GitHub
Browse files

chore: add --no-install-recommends to apt-get install commands (#5774)


Signed-off-by: default avatarDan Gil <dagil@nvidia.com>
Co-authored-by: default avatarCursor <cursoragent@cursor.com>
parent 0b05c4c7
......@@ -39,7 +39,7 @@ ARG BUILD_REF
WORKDIR /workspace
# Install build dependencies for CGO
RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
libc-dev \
......@@ -72,7 +72,7 @@ RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
FROM ${BASE_IMAGE}
# Install runtime dependencies
RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libstdc++6 \
&& rm -rf /var/lib/apt/lists/*
......
......@@ -14,7 +14,7 @@ ARG TARGETARCH
RUN echo "Building for ${TARGETOS}/${TARGETARCH}"
# Install common dependencies
RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends git && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
......@@ -38,7 +38,7 @@ RUN golangci-lint run --timeout=5m
FROM base AS tester
# Install make if not present
RUN apt-get update && apt-get install -y make && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends make && apt-get clean && rm -rf /var/lib/apt/lists/*
# Run tests using Makefile
RUN make test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment