Skip to content

Commit 571d0e1

Browse files
committed
Dockerfiles: fix warning DL3059, consolidate RUN statements
1 parent 7bf5e53 commit 571d0e1

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

docker/producer-dashboard/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ RUN curl -s -L https://github.com/ocaml/opam/releases/download/2.1.2/opam-2.1.2-
5959

6060
RUN apt-get -y --no-install-recommends install m4 pkg-config
6161

62-
RUN opam init --disable-sandboxing
63-
RUN opam switch create .
64-
RUN eval "$(opam config env)"
65-
RUN opam switch import -y opam.export
66-
RUN ./scripts/pin-external-packages.sh
62+
RUN opam init --disable-sandboxing && \
63+
opam switch create . && \
64+
eval "$(opam config env)" && \
65+
opam switch import -y opam.export && \
66+
./scripts/pin-external-packages.sh
6767

6868
RUN curl -L https://go.dev/dl/go1.19.linux-amd64.tar.gz -o go1.19.tar.gz \
6969
&& tar -C /usr/local -xzf go1.19.tar.gz \

frontend/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ FROM node:18 AS BUILD_IMAGE
33
ARG BUILD_CONFIGURATION=production
44
WORKDIR /app
55
COPY . .
6-
RUN npm install
7-
RUN node_modules/.bin/ng build --configuration ${BUILD_CONFIGURATION}
8-
RUN npm prune --production
9-
10-
RUN echo "---------- USING APACHE ----------"
6+
RUN npm install && \
7+
node_modules/.bin/ng build --configuration ${BUILD_CONFIGURATION} && \
8+
npm prune --production && \
9+
echo "---------- USING APACHE ----------"
1110

1211

1312
FROM httpd:2.4

tools/heartbeats-processor/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ WORKDIR /usr/src/app
55
RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
66

77
COPY . .
8-
RUN ls -la tools/heartbeats-processor
9-
RUN cargo build --release -p heartbeats-processor
8+
RUN ls -la tools/heartbeats-processor && \
9+
cargo build --release -p heartbeats-processor
1010

1111
# Runtime stage
1212
FROM debian:bookworm-slim

0 commit comments

Comments
 (0)