Files
hpcore/test/local-cluster/Dockerfile
Ravin Perera 920be03ade Websocket re-architecture with websocketd and websocat (#89)
- Replaced beast with websocketd and websocat. #79 #83 #84
- Implemented inbound/outbound peer connection merging.
- Added graceful shutdown of hpcore with sigint. #87
2020-04-05 08:12:55 +05:30

22 lines
689 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:10.17.0-buster-slim
RUN apt-get update
# Install netcat for websocketd <--> domain socket redirection.
RUN apt-get install -y netcat-openbsd
# Install fuse.
# Copy fuse shared library and register it.
COPY ./bin/libfuse3.so.3 /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/hpstatemon .
COPY ./bin/websocketd .
COPY ./bin/websocat .
ENTRYPOINT ["/hp/hpcore"]