ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 in / |
LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00 |
CMD ["/bin/bash"] |
ENV http_proxy=http://172.20.32.253:3128 |
ENV https_proxy=http://172.20.32.253:3128 |
RUN /bin/sh -c curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo # buildkit |
RUN /bin/sh -c yum update -y && yum install -y openssl openssl-devel wget git net-tools java java-devel # buildkit |
RUN /bin/sh -c cd ~ && mkdir -p fisco && cd fisco # buildkit |
WORKDIR /root/fisco |
COPY build_chain.sh /root/fisco/ # buildkit |
COPY console /root/fisco/console # buildkit |
COPY start.sh /root/fisco/ # buildkit |
RUN /bin/sh -c bash build_chain.sh -l 127.0.0.1:4 -p 30300,20200,8545 # buildkit |
RUN /bin/sh -c wget https://golang.google.cn/dl/go1.22.5.linux-amd64.tar.gz # buildkit |
RUN /bin/sh -c tar xfz go1.22.5.linux-amd64.tar.gz -C /usr/local/ # buildkit |
RUN /bin/sh -c git clone https://gitlink.org.cn/xxq250/trustie-fisco-bcos.git # buildkit |
ENV GO_HOME=/usr/local/go |
ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV GOPROXY=https://goproxy.cn,direct |
RUN /bin/sh -c cd /root/fisco/trustie-fisco-bcos && go mod tidy # buildkit |
RUN /bin/sh -c unset http_proxy && unset https_proxy # buildkit |
bash /root/fisco/start.sh |