Skip to content

Commit

Permalink
fix: do not install system-wide python packages with pip
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Dec 18, 2024
1 parent 989218d commit 9afc81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Dockerfile_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ ARG TARGETPLATFORM

RUN apt update && apt dist-upgrade -y \
&& apt install -y \
cmake python3-pip

RUN pip install conan==2.8.1
cmake apt python3-conan

WORKDIR /src
COPY conanfile.py conanprofile.docker conanprofile.docker_arm ./
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile_linter_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ WORKDIR /src

RUN apt update \
&& apt install -y \
cmake python3-pip software-properties-common wget gnupg lsb-release \
cmake python3-conan software-properties-common wget gnupg lsb-release \
&& wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc \
&& add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main' \
&& apt install -y clang-tidy-15 \
&& apt install -y jq \
&& apt install -y curl

RUN pip install conan==2.8.1

COPY conanfile.py conanprofile.docker conanprofile.docker_arm ./
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
mv conanprofile.docker_arm conanprofile; \
Expand Down

0 comments on commit 9afc81f

Please sign in to comment.