Skip to content

Commit 9d1bcfa

Browse files
authored
Dockerfiles: consolidate RUN commands (#140)
1 parent 1a3ff5a commit 9d1bcfa

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM ubuntu:22.04
2-
RUN apt-get update && apt install -y build-essential clang git wget
3-
RUN wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
4-
RUN chmod +x /usr/local/bin/bazel
2+
RUN apt-get update \
3+
&& apt install -y build-essential clang git wget \
4+
&& wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 \
5+
&& chmod +x /usr/local/bin/bazel
56
COPY . /tmp
67
WORKDIR /tmp
78
RUN bazel build //test/e2e:e2e_consumer
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM ubuntu:22.04
2-
RUN apt-get update && apt install -y build-essential clang git wget
3-
RUN wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
4-
RUN chmod +x /usr/local/bin/bazel
2+
RUN apt-get update \
3+
&& apt install -y build-essential clang git wget \
4+
&& wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 \
5+
&& chmod +x /usr/local/bin/bazel
56
COPY . /tmp
67
WORKDIR /tmp
78
RUN bazel build //test/e2e:e2e_provider

0 commit comments

Comments
 (0)