nimbus-eth1/fluffy/tools/utp_testing/docker/Dockerfile

37 lines
936 B
Docker
Raw Permalink Normal View History

FROM debian:buster-slim AS build
RUN apt-get update \
&& apt-get install -y --fix-missing build-essential make git libpcre3-dev librocksdb-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG BRANCH_NAME=master
ENV NPROC=2
RUN git clone https://github.com/status-im/nimbus-eth1.git \
&& cd nimbus-eth1 \
&& git checkout ${BRANCH_NAME} \
&& git pull \
&& make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
RUN cd nimbus-eth1 && \
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" utp-test-app && \
mv build/utp_test_app /bin/
FROM debian:buster-slim AS deploy
RUN apt-get update \
&& apt-get install -y ethtool net-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --from=build /bin/utp_test_app /bin/utp_test_app
COPY setup.sh .
RUN chmod +x setup.sh
COPY run_endpoint.sh .
RUN chmod +x run_endpoint.sh
ENTRYPOINT [ "./run_endpoint.sh" ]