Skip to content

Instantly share code, notes, and snippets.

@victor-gesit
Created June 18, 2023 08:29
Show Gist options
  • Save victor-gesit/9e82712afa851cfa2dd7193df1611976 to your computer and use it in GitHub Desktop.
Save victor-gesit/9e82712afa851cfa2dd7193df1611976 to your computer and use it in GitHub Desktop.
# 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