Files
hpcore/test/local-cluster/Dockerfile
2021-04-12 07:15:57 +05:30

24 lines
719 B
Docker

# We are going with NodeJs debian docker image because sample contracts need NodeJs to run.
# Otherwise, hpcore itself can run on any docker image like ubuntu or debian without NodeJs.
FROM node:12.18.3-buster-slim
RUN apt-get update
RUN apt-get install -y libgomp1 libssl-dev gdb valgrind
# Install shared libraries.
# Copy shared libraries and register it.
COPY ./bin/libfuse3.so.3 /usr/local/lib/
COPY ./bin/libblake3.so /usr/local/lib/
RUN ldconfig
COPY ./bin/fusermount3 /usr/local/bin/
# hpcore binary is copied to /hp directory withtin the docker image.
WORKDIR /hp
COPY ./bin/hpcore .
COPY ./bin/hpfs .
COPY ./bin/hpws .
ENTRYPOINT ["/hp/hpcore"]
# Run with valgrind
# ENTRYPOINT ["valgrind", "/hp/hpcore"]