mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
- Replaced beast with websocketd and websocat. #79 #83 #84 - Implemented inbound/outbound peer connection merging. - Added graceful shutdown of hpcore with sigint. #87
22 lines
689 B
Docker
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"] |