|
| 1 | +FROM centos:7 as fiu |
| 2 | +LABEL maintainer= "Cyber-SiKu <[email protected]>" |
| 3 | +# ADD https://mirrors.163.com/.help/CentOS7-Base-163.repo /etc/yum.repos.d/CentOS-Base.repo |
| 4 | +RUN yum clean all && yum makecache \ |
| 5 | + && yum install -y wget \ |
| 6 | + gcc \ |
| 7 | + python3 \ |
| 8 | + make \ |
| 9 | + && wget https://github.com/albertito/libfiu/archive/refs/tags/1.00.tar.gz \ |
| 10 | + && tar -xzvf 1.00.tar.gz \ |
| 11 | + && cd libfiu-1.00 \ |
| 12 | + && make && make install |
| 13 | + |
| 14 | +FROM centos:7 as builder |
| 15 | + |
| 16 | +COPY --from=fiu /usr/local/include/fiu*.h /usr/local/include/ |
| 17 | +COPY --from=fiu /usr/local/lib/ /usr/local/lib |
| 18 | +RUN yum clean all && yum makecache \ |
| 19 | + && yum install -y wget \ |
| 20 | + make \ |
| 21 | + patch \ |
| 22 | + gcc \ |
| 23 | + gcc-c++ \ |
| 24 | + clang \ |
| 25 | + zlib-devel \ |
| 26 | + openssl-devel \ |
| 27 | + libuuid-devel \ |
| 28 | + libnl3-devel \ |
| 29 | + libcurl-devel \ |
| 30 | + python-devel \ |
| 31 | + python-setuptools \ |
| 32 | + python3-devel \ |
| 33 | + python3-setuptools \ |
| 34 | + python3-wheel \ |
| 35 | + libunwind-devel \ |
| 36 | + sudo \ |
| 37 | + && wget https://curve-build.nos-eastchina1.126.net/bazelbuild/bazelisk/bazelisk-linux-amd64 \ |
| 38 | + && mv bazelisk-linux-amd64 /usr/bin/bazelisk \ |
| 39 | + && ln -s /usr/bin/bazelisk /usr/bin/bazel \ |
| 40 | + && wget https://curve-build.nos-eastchina1.126.net/bazelbuild/4.2.2/bazel-4.2.2-linux-x86_64 \ |
| 41 | + && mkdir -p /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin \ |
| 42 | + && mv bazel-4.2.2-linux-x86_64 /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin/bazel \ |
| 43 | + && wget https://curve-build.nos-eastchina1.126.net/bazelbuild/0.17.2/bazel-0.17.2-linux-x86_64\ |
| 44 | + && mkdir -p /root/.cache/bazelisk/downloads/bazelbuild/bazel-0.17.2-linux-x86_64/bin \ |
| 45 | + && mv bazel-0.17.2-linux-x86_64 /root/.cache/bazelisk/downloads/bazelbuild/bazel-0.17.2-linux-x86_64/bin/bazel \ |
| 46 | + && chmod +x /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin/bazel /root/.cache/bazelisk/downloads/bazelbuild/bazel-0.17.2-linux-x86_64/bin/bazel /usr/bin/bazel /usr/bin/bazelisk \ |
| 47 | + && yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm \ |
| 48 | + && yum install -y git |
0 commit comments