Skip to content

Instantly share code, notes, and snippets.

@Congyuwang
Created August 24, 2023 08:46
Show Gist options
  • Save Congyuwang/203c291fa6fcac68cf364448d305a4c4 to your computer and use it in GitHub Desktop.
Save Congyuwang/203c291fa6fcac68cf364448d305a4c4 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
@Congyuwang
Copy link
Author

requires libssl-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment