forked from brahmGAN/ganchain-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (14 loc) · 690 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (14 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Start from the Ubuntu base image
FROM ubuntu:latest
# Install necessary packages
RUN apt-get update && apt-get install -y wget && apt-get install -y curl
# Set the working directory
WORKDIR /app
# Download the binary file from GitHub
RUN wget -O binary-file https://github.com/brahmGAN/ganchain-v2/releases/download/v2.0.0/gpu
# Give execute permission to the binary
RUN chmod +x binary-file
#Get name from env
ENV NAME="GANValidator"
# Command to run the binary
CMD ./binary-file --base-path chaindata/GanValidator --chain gpu --port 30333 --rpc-port 9933 --validator --name ${NAME} --bootnodes /ip4/3.64.87.46/tcp/30335/ws/p2p/12D3KooWDnsUzPhi6Dra6wRLooM9BSwDS4QmrfmzkTz6YW5nGVcm