forked from romange/container-foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentos7-dev.Dockerfile
23 lines (18 loc) · 943 Bytes
/
centos7-dev.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# syntax=docker/dockerfile:1
FROM centos:7.9.2009
COPY ./install_boost.sh /tmp/
RUN yum update -y && yum install -y automake libtool git epel-release make \
autoconf-archive patch wget bzip2 \
zlib-devel centos-release-scl
RUN yum install -y devtoolset-11-gcc-c++ cmake3 ninja-build \
libzstd-static && yum clean all && rm -rf /var/cache/yum
RUN echo "source /opt/rh/devtoolset-11/enable" >> /etc/bashrc
SHELL ["/bin/bash", "--login", "-c"]
RUN wget --no-check-certificate https://ftp.openssl.org/source/openssl-1.1.1w.tar.gz && \
tar -xzvf openssl-1.1.1w.tar.gz && \
cd openssl-1.1.1w && \
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic && \
make -j $(nproc) && make install && \
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-3.7.3.tar.gz && \
tar -xvzf bison-3.7.3.tar.gz && cd bison-3.7.3 && \
./configure && make -j$(nproc) && make install