a new chain is borne
This commit is contained in:
29
hyperliquid/visor.Dockerfile
Normal file
29
hyperliquid/visor.Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
ARG CHAIN_NAME=Testnet
|
||||
|
||||
# Define URLs as environment variables
|
||||
ARG HL_VISOR_URL_TESTNET=https://binaries.hyperliquid-testnet.xyz/Testnet/hl-visor
|
||||
ARG HL_VISOR_URL_MAINNET=https://binaries.hyperliquid.xyz/Mainnet/hl-visor
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
# Configure chain to testnet
|
||||
RUN echo "{\"chain\": \"${CHAIN_NAME}\"}" > /root/visor.json
|
||||
|
||||
# Download and verify hl-visor binary
|
||||
RUN if [ "$CHAIN_NAME" = "Testnet" ]; then \
|
||||
curl -o /root/hl-visor $HL_VISOR_URL_TESTNET; \
|
||||
else \
|
||||
curl -o /root/hl-visor $HL_VISOR_URL_MAINNET; \
|
||||
fi \
|
||||
&& chmod +x /root/hl-visor \
|
||||
&& mkdir -p /root/hl/data
|
||||
|
||||
VOLUME /root/hl/data
|
||||
|
||||
# Expose gossip ports
|
||||
EXPOSE 4000-4010
|
||||
|
||||
# Run a non-validating node
|
||||
ENTRYPOINT ["/root/hl-visor", "run-non-validator", "--replica-cmds-style", "recent-actions", "--serve-evm-rpc"]
|
||||
Reference in New Issue
Block a user