Last active
August 12, 2022 06:41
-
-
Save xorz57/c7ef2292b046d84da9eca7b18abbb33d to your computer and use it in GitHub Desktop.
Docker Image based on Ubuntu Focal for C/C++ Development
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
FROM ubuntu:focal | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates wget perl make gcc-10 g++-10 gdb | |
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 && \ | |
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 | |
# Install OpenSSL 1.1.1k | |
RUN wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz && \ | |
tar -xzf openssl-1.1.1k.tar.gz && \ | |
cd openssl-1.1.1k && \ | |
./config && \ | |
make -j$(nproc) && \ | |
make install && \ | |
cd .. && \ | |
rm -rf openssl-1.1.1k* | |
# Install CMake 3.20.1 | |
RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.1/cmake-3.20.1.tar.gz && \ | |
tar -xzf cmake-3.20.1.tar.gz && \ | |
cd cmake-3.20.1 && \ | |
./bootstrap && \ | |
make -j$(nproc) && \ | |
make install && \ | |
cd .. && \ | |
rm -rf cmake-3.20.1* | |
# Install Boost 1.75.0 | |
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.gz && \ | |
tar -xzf boost_1_75_0.tar.gz && \ | |
cd boost_1_75_0 && \ | |
./bootstrap.sh && \ | |
./b2 -j$(nproc) && \ | |
./b2 install && \ | |
cd .. && \ | |
rm -rf boost_1_75_0* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment