feat: Add docker
This commit is contained in:
parent
945ebd2e08
commit
e5b7f7d1e7
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
# Use an official Node.js runtime as the base image
|
||||
FROM node:14
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy your application files to the container
|
||||
COPY . .
|
||||
|
||||
|
||||
# Command to run your Node.js application
|
||||
CMD ["node", "build/hip2-server.js", "3000"]
|
||||
|
||||
|
||||
# docker run -p 3000:3000 -v ~/Downloads/xpub:/app/conf/xpub
|
@ -109,3 +109,11 @@ recovery wallet before rescanning. After the hip2-server serves `0x7fffffff`
|
||||
addresses, it will start over at index `0` and recycle. The `log/hip2-index`
|
||||
file will continue to increment, so users should also take action if they see
|
||||
the value in that file exceed `2147483647`.
|
||||
|
||||
|
||||
### Docker (experimental)
|
||||
|
||||
```
|
||||
sudo docker build -t hip2-server .
|
||||
sudo docker run -p 3000:3000 -v ~/Downloads/xpub:/app/conf/xpub hip2-server
|
||||
```
|
Loading…
Reference in New Issue
Block a user