This commit is contained in:
2025-12-08 19:36:20 +01:00
parent 16b1540876
commit 864987dc75

View File

@@ -20,7 +20,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install conan --break-system-packages
# Install conan only for Ubuntu 24.04 or newer
RUN UBUNTU_MAJOR_VERSION=$(cut -d'.' -f1 <<<"$UBUNTU_VERSION") && \
if [ "$UBUNTU_MAJOR_VERSION" -ge 24 ]; then \
pip install conan --break-system-packages; \
fi
RUN mkdir -p $NVM_DIR && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \