This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-07-26 11:28:27 +00:00
|
|
|
FROM node:16.5.0-alpine
|
2020-07-27 09:30:55 +00:00
|
|
|
|
|
|
|
WORKDIR /opt/hsd
|
|
|
|
|
2021-04-01 13:15:37 +00:00
|
|
|
RUN apk update && apk add bash unbound-dev gmp-dev g++ gcc make python2 git
|
2021-09-03 14:52:54 +00:00
|
|
|
# Checkout a specific commit until Handshake releases the next release after
|
|
|
|
# 2.4.0 then we should switch to that tag.
|
|
|
|
#
|
|
|
|
# The commit we are targetting right now contains a fix for handling the chain
|
|
|
|
# migration code for new portals.
|
2021-08-05 10:55:57 +00:00
|
|
|
RUN git clone https://github.com/handshake-org/hsd.git /opt/hsd && \
|
2021-09-03 14:37:40 +00:00
|
|
|
cd /opt/hsd && git checkout 6f0927db32723d6320c8bff255a6ccf70b2ccd32 && cd -
|
2020-07-30 12:23:49 +00:00
|
|
|
RUN npm install --production
|
2020-07-27 09:30:55 +00:00
|
|
|
|
|
|
|
ENV PATH="${PATH}:/opt/hsd/bin:/opt/hsd/node_modules/.bin"
|
|
|
|
|
|
|
|
ENTRYPOINT ["hsd"]
|