1- FROM ubuntu:24 .04 AS base
1+ FROM ubuntu:22 .04 AS base
22
33FROM base AS build
44
@@ -8,8 +8,8 @@ ENV RUSTUP_HOME=/usr/local/rustup \
88 CARGO_HOME=/usr/local/cargo \
99 PATH=/usr/local/cargo/bin:$PATH
1010
11- RUN apt-get update -y && apt-get --no-install-recommends install -y \
12- build-essential ca-certificates curl git unzip
11+ RUN apt-get update && apt-get --no-install-recommends install -y \
12+ build-essential ca-certificates curl git
1313
1414RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
1515 && rustup --version \
@@ -30,14 +30,11 @@ COPY --from=build /app/target/release/datadog-static-analyzer-server /usr/bin/da
3030COPY --from=build /app/target/release/datadog-static-analyzer-git-hook /usr/bin/datadog-static-analyzer-git-hook
3131COPY --from=build /app/misc/github-action.sh /usr/bin/github-action.sh
3232
33- RUN apt-get update -y && apt-get --no-install-recommends install -y \
34- build-essential ca-certificates curl git unzip git
35- RUN apt remove -y nodejs npm \
33+ RUN apt update && apt install -y curl git \
3634 && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
37- && DEBIAN_FRONTEND=noninteractive apt install -y nodejs
38- RUN rm -f /etc/apt/sources.list.d/nodesource.list
39- RUN rm -f /etc/apt/trusted.gpg.d/nodesource.gpg
40- RUN apt clean && rm -rf /var/lib/apt/lists/*
35+ && apt remove -y nodejs npm \
36+ && apt install -y nodejs \
37+ && apt clean && rm -rf /var/lib/apt/lists/*
4138RUN npm install -g @datadog/datadog-ci \
4239 && datadog-ci --version \
4340 && datadog-static-analyzer --version
0 commit comments