Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Build GTC for Cent OS 7
FROM centos:7 AS download-cmake
RUN mkdir -p /download
WORKDIR /download
RUN curl -OL
RUN tar xzf cmake-3.15.5.tar.gz
FROM centos:7 AS build-cmake
RUN yum update -y
RUN yum install -y gcc gcc-c++ make zlib-devel curl-devel openssl-devel libarchive-devel ncurses-devel readline-devel
COPY --from=download-cmake /download/cmake-3.15.5 /src/cmake-3.15.5
WORKDIR /src/cmake-3.15.5
RUN ./configure --prefix=/opt/cmake && make -j4
RUN make install
FROM centos:7 AS download-gtc
RUN yum install -y git
RUN git clone
FROM centos:7 AS build
RUN yum install -y gcc gcc-c++ make zlib-devel automake autoconf libtool xz-devel bzip2 bzip2-devel git openssl-devel libcurl-devel tbb-devel chrpath wget
COPY --from=build-cmake /opt/cmake /opt/cmake
ENV PATH /opt/cmake/bin:$PATH
WORKDIR /build
COPY --from=download-gtc /GTC /build/GTC
RUN ./ && make && make install prefix=/opt/gtc
WORKDIR /opt/gtc
RUN tar czf /gtc.tar.gz .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment