Created
November 22, 2019 05:51
-
-
Save informationsea/1bdb635a38958d2247ad8c9f3e976822 to your computer and use it in GitHub Desktop.
Build GTC for Cent OS 7
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 centos:7 AS download-cmake | |
RUN mkdir -p /download | |
WORKDIR /download | |
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.15.5/cmake-3.15.5.tar.gz | |
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 https://github.com/refresh-bio/GTC.git | |
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 | |
WORKDIR /build/GTC | |
RUN ./install.sh && 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