Skip to content

Instantly share code, notes, and snippets.

@rhiskey
Forked from Congyuwang/Dockerfile
Created December 28, 2024 05:55
Show Gist options
  • Save rhiskey/f21e104b04432def705fab7d560675c1 to your computer and use it in GitHub Desktop.
Save rhiskey/f21e104b04432def705fab7d560675c1 to your computer and use it in GitHub Desktop.
Dockerfile Install CMake
# install cmake
WORKDIR /root
RUN mkdir temp
WORKDIR /root/temp
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.27.4/cmake-3.27.4.tar.gz
RUN tar -xzvf cmake-3.27.4.tar.gz
WORKDIR /root/temp/cmake-3.27.4
RUN ./bootstrap -- -DCMAKE_BUILD_TYPE:STRING=Release
RUN make -j4
RUN make install
WORKDIR /root
RUN rm -rf temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment