Skip to content

Commit 2a95a72

Browse files
committed
run apt-get update and apt-get install in same layer
1 parent 37f3c29 commit 2a95a72

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

scripts/Dockerfile.alpine.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ RUN /usr/lib/go/bin/go tool nm datadog-agent | grep -w 'github.com/DataDog/datad
5454
FROM ubuntu:22.04 as compresser
5555
ARG CMD_PATH
5656
ARG DATADOG_WRAPPER=datadog_wrapper
57-
RUN apt-get update
58-
RUN apt-get install -y zip binutils
57+
RUN apt-get update && apt-get install -y zip binutils
5958
RUN mkdir /extensions
6059
WORKDIR /extensions
6160
COPY --from=builder /tmp/dd/datadog-agent/"${CMD_PATH}"/datadog-agent /extensions/datadog-agent

scripts/Dockerfile.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ FROM ubuntu:22.04 as compresser
5757
ARG CMD_PATH
5858
ARG DATADOG_WRAPPER=datadog_wrapper
5959

60-
RUN apt-get update
61-
RUN apt-get install -y zip binutils
60+
RUN apt-get update && apt-get install -y zip binutils
6261
RUN mkdir /extensions
6362
WORKDIR /extensions
6463
COPY --from=builder /tmp/dd/datadog-agent/"${CMD_PATH}"/datadog-agent /extensions/datadog-agent

scripts/Dockerfile.race.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ RUN go tool nm datadog-agent | grep -w 'github.com/DataDog/datadog-agent/pkg/ver
4343

4444
# zip the extension
4545
FROM ubuntu:22.04 as compresser
46-
RUN apt-get update
47-
RUN apt-get install -y zip
46+
RUN apt-get update && apt-get install -y zip
4847
RUN mkdir /extensions
4948
WORKDIR /extensions
5049
COPY --from=builder /tmp/dd/datadog-agent/cmd/serverless/datadog-agent /extensions/datadog-agent

0 commit comments

Comments
 (0)