The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/rosetta/infra/Dockerfile

42 lines
912 B

# Build
FROM golang:1.16 AS build
RUN apt update -y && \
apt install libgmp-dev libssl-dev git -y && \
apt -y clean all
ENV GOPATH=/root/go
ENV GO111MODULE=on
ENV HMY_PATH=${GOPATH}/src/github.com/harmony-one
RUN mkdir -p $HMY_PATH
WORKDIR $HMY_PATH
RUN git clone https://github.com/harmony-one/harmony.git && \
git clone https://github.com/harmony-one/bls.git && \
git clone https://github.com/harmony-one/mcl.git
WORKDIR $HMY_PATH/harmony
RUN go mod download
RUN make linux_static && \
cp ./bin/harmony /root/harmony && \
cp ./rosetta/infra/run.sh /root/run.sh
# Execution
FROM ubuntu:latest
RUN apt update -y && \
apt install libgmp-dev libssl-dev -y && \
apt -y clean all
WORKDIR /root
COPY --from=build /root/harmony /root/harmony
COPY --from=build /root/run.sh /root/run.sh
EXPOSE 9500/tcp
EXPOSE 9700/tcp
EXPOSE 9800/tcp
ENTRYPOINT ["/bin/bash","/root/run.sh"]