1 Star 0 Fork 0

Zarror/pier-client-ethereum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Alexader 提交于 2020-06-10 15:35 . feat(dockerfile): add dockerfile
FROM golang:1.14.2 as builder
RUN mkdir -p /go/src/github.com/meshplus/pier-client-ethereum
WORKDIR /go/src/github.com/meshplus/pier-client-ethereum
# Cache dependencies
COPY . .
RUN mv build/pier ../pier
# Build real binaries
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go get -u github.com/gobuffalo/packr/packr
RUN cd ../pier && make install
RUN cd ../pier-client-ethereum && \
make eth && \
cp build/eth-client.so /go/bin/eth-client.so
# Final image
FROM frolvlad/alpine-glibc
WORKDIR /root
# Copy over binaries from the builder
COPY --from=builder /go/bin/pier /usr/local/bin
COPY ./build/pier/build/libwasmer.so /lib
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib
RUN ["pier", "init"]
RUN mkdir -p /root/.pier/plugins
COPY --from=builder /go/bin/*.so /root/.pier/plugins/
COPY config/validating.wasm /root/.pier/validating.wasm
COPY scripts/docker_entrypoint.sh /root/docker_entrypoint.sh
RUN chmod +x /root/docker_entrypoint.sh
COPY config /root/.pier/ether
COPY config/pier.toml /root/.pier/pier.toml
ENV APPCHAIN_NAME=ether
EXPOSE 44555 44544
ENTRYPOINT ["/root/docker_entrypoint.sh", "$APPCHAIN_NAME"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zarror-wang/pier-client-ethereum.git
[email protected]:zarror-wang/pier-client-ethereum.git
zarror-wang
pier-client-ethereum
pier-client-ethereum
master

搜索帮助