15 Star 173 Fork 71

医学联盟 / 医学区块链

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
lidunwei 提交于 2020-10-04 15:10 . 增加fisco—bcos
FROM python:3.7-alpine
LABEL 99kies 1290017556@qq.com https://github.com/99kies
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
apk update && \
apk add --no-cache git gcc g++ python python-dev py-pip mysql-dev openssl bash linux-headers libffi-dev openssl-dev curl wget && \
bash && \
export PATH=/root/.local/bin/:$PATH && \
cd ~ && mkdir -p fisco && cd fisco && \
curl -Ls https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/master/tools/get_buildchain.sh > get_buildchain.sh && chmod u+x get_buildchain.sh && \
bash get_buildchain.sh && chmod u+x build_chain.sh && \
bash build_chain.sh -l "127.0.0.1:4" -p 30300,20200,8545 && \
cd / && \
git clone https://github.com/FISCO-BCOS/python-sdk && \
cd python-sdk && \
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --user && \
bash init_env.sh -i && \
cp ~/fisco/nodes/127.0.0.1/sdk/* bin/ && \
ln -s /root/.local/bin/register-python-argcomplete /bin/register-python-argcomplete && \
echo "eval \"\$(register-python-argcomplete ./console.py)\"" >> ~/.bashrc && \
rm /var/cache/apk/*
WORKDIR /python-sdk
EXPOSE 20200 30300 8545
CMD ["bash"]
Python
1
https://gitee.com/medical-alliance/medical-blockchain.git
git@gitee.com:medical-alliance/medical-blockchain.git
medical-alliance
medical-blockchain
医学区块链
master

搜索帮助