Created
June 18, 2023 08:29
-
-
Save victor-gesit/9e82712afa851cfa2dd7193df1611976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I relied on ChatGPT for this. However, I understand what each line does and can debug it as needed. | |
FROM ubuntu:focal | |
# Install build tools | |
RUN apt-get update && apt-get install -y \ | |
g++-10 \ | |
cmake \ | |
ninja-build | |
RUN apt-get install -y python3-pip && pip3 install conan==1.34.1 | |
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100 | |
RUN update-alternatives --install /usr/bin/cmake cmake /usr/bin/cmake 1 --slave /usr/bin/ctest ctest /usr/bin/ctest --slave /usr/bin/cpack cpack /usr/bin/cpack --slave /usr/bin/ccmake ccmake /usr/bin/ccmake | |
RUN update-alternatives --install /usr/bin/ninja ninja /usr/bin/ninja-build 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment