11# Base OS
2- FROM ubuntu:24.04
2+ FROM ubuntu:24.04 AS qsim-base
33
44# Allow passing this variable in from the outside.
55ARG CUDA_PATH
66ENV PATH="$CUDA_PATH/bin:$PATH"
77
88# Update package list & install some basic tools we'll need.
9- RUN apt-get update
10- RUN apt-get install -y python3-dev python3-pip python3-venv make g++ wget git
9+ # hadolint ignore=DL3009,DL3008
10+ RUN apt-get update && \
11+ apt-get install -y make g++ wget git --no-install-recommends && \
12+ apt-get install -y python3-dev python3-pip python3-venv --no-install-recommends
1113
1214# Ubuntu 24's version of CMake is 3.28. We need a newer version.
1315RUN apt-get remove --purge --auto-remove cmake
14- RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.31.7/cmake-3.31.7-linux-x86_64.sh
15- RUN sh cmake-3.31.7-linux-x86_64.sh --prefix=/usr/local --skip-license
16+ RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.31.7/cmake-3.31.7-linux-x86_64.sh && \
17+ sh cmake-3.31.7-linux-x86_64.sh --prefix=/usr/local --skip-license
1618
1719# Copy relevant files for simulation.
1820COPY ./Makefile /qsim/Makefile
@@ -31,8 +33,9 @@ RUN python3 -m venv --upgrade-deps test_env
3133ENV PATH="/test_env/bin:$PATH"
3234
3335# Install qsim requirements.
34- RUN python3 -m pip install -r /qsim/requirements.txt
35- RUN python3 -m pip install -r /qsim/dev-requirements.txt
36+ # hadolint ignore=DL3042
37+ RUN python3 -m pip install -r /qsim/requirements.txt && \
38+ python3 -m pip install -r /qsim/dev-requirements.txt
3639
3740# Compile qsim.
3841WORKDIR /qsim/
0 commit comments