Skip to content

Commit a9c71bb

Browse files
committed
revert Dockerfile
1 parent 685a084 commit a9c71bb

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:24.04 AS base
1+
FROM ubuntu:22.04 AS base
22

33
FROM 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

1414
RUN 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
3030
COPY --from=build /app/target/release/datadog-static-analyzer-git-hook /usr/bin/datadog-static-analyzer-git-hook
3131
COPY --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/*
4138
RUN npm install -g @datadog/datadog-ci \
4239
&& datadog-ci --version \
4340
&& datadog-static-analyzer --version

0 commit comments

Comments
 (0)