Skip to content

Commit

Permalink
fix: install conan with pipx instead of pip
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jan 8, 2025
1 parent bcb4a21 commit 1522497
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Dockerfile_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ ARG TARGETPLATFORM

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

RUN pip install conan==2.8.1

RUN apt install -y software-properties-common wget gnupg lsb-release wget jq curl \
build-essential cmake python3 pipx software-properties-common wget gnupg lsb-release jq curl \
&& 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

# ensurepath adds a line to .profile
# which puts the pipx install directory ~/.local/bin into the PATH variable
RUN python3 -m pipx ensurepath
# .profile is only sourced on relogin. Dockerfile shells do not login by default.
# This line tells it to execute all subsequent commands with a prior login
SHELL ["/bin/bash", "-login", "-c"]

RUN python3 -m pipx install conan==2.8.1

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

0 comments on commit 1522497

Please sign in to comment.