Skip to content

Commit 81818ed

Browse files
committed
Reduce RUN commands:
1 parent aa28237 commit 81818ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

linux/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ RUN apt-get update \
2323
wget gnupg curl \
2424
build-essential \
2525
libz-dev \
26-
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
26+
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
27+
python3-venv
2728

2829
# dpkg --add-architecture arm64 \
2930

@@ -40,13 +41,12 @@ RUN apt-get install -y zip clang lldb lld clangd \
4041
llvm-$LLVM_VER-dev libpolly-$LLVM_VER-dev
4142

4243
# Install llvm-lit, which we use for correctness tests
43-
RUN apt-get install -y python3-venv
44-
RUN python3 -m venv /opt/venv
45-
RUN /opt/venv/bin/python -m pip install --upgrade pip
46-
RUN /opt/venv/bin/python -m pip install pipx
47-
RUN /opt/venv/bin/pipx install lit
48-
RUN /opt/venv/bin/pipx ensurepath
49-
RUN /opt/venv/bin/pipx ensurepath --global
44+
RUN python3 -m venv /opt/venv \
45+
&& /opt/venv/bin/python -m pip install --upgrade pip \
46+
&& /opt/venv/bin/python -m pip install pipx \
47+
&& /opt/venv/bin/pipx install lit \
48+
&& /opt/venv/bin/pipx ensurepath \
49+
&& /opt/venv/bin/pipx ensurepath --global
5050

5151
ENV CARGO_HOME=/usr/local/cargo
5252
ENV RUSTUP_HOME=/usr/local/rustup

0 commit comments

Comments
 (0)