Created
April 1, 2023 19:28
-
-
Save jorisvddonk/0f0391a98c727a77282905c74cb509fa to your computer and use it in GitHub Desktop.
Two-liner to install CMake 3.26.2 to /opt in Docker
This file contains hidden or 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
RUN mkdir -p /opt/bin; mkdir -p /opt/doc; mkdir -p /opt/man; mkdir -p /opt/share; wget -O - https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2-linux-x86_64.tar.gz | tar -xvzf - -C /opt --strip-components=1 | |
ENV PATH=/opt/bin:${PATH} | |
RUN cmake --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment