Files
hpcore/examples/js_client/Dockerfile
Ravin Perera f2ed9040c0 User protocol upgrade and js client lib. (#191)
* Unified js client lib for browser and nodejs.
* Client lib multiple connections support.
* Implemented server challenge response.
* Contract guid and version validation.
* Server key validation.
* User json message encoding improvements.
2020-12-11 11:02:58 +05:30

15 lines
285 B
Docker

FROM node:12.18.3-buster-slim
WORKDIR /text_client
COPY package*.json ./
RUN npm install
COPY text-client.js ./
COPY hp-client-lib.js ./
ENTRYPOINT ["node", "text-client.js"]
# Comment this for localhost connection.
# Client connects to node1 of the cluster.
CMD ["node1", "8081"]