-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/lib/apt/lists/*
# Download pre-built binary from GitHub Releases
# VARIANT: "" for testnet, "-mainnet" for mainnet (no faucet, emission-only genesis)
# CACHEBUST is set to the git SHA by the deploy script to force re-download
ARG GITHUB_REPO=UltraDAGcom/core
ARG VERSION=latest
ARG VARIANT=""
ARG CACHEBUST=0
RUN echo "cache-bust: ${CACHEBUST} variant: ${VARIANT}" && \
curl -fL "https://github.com/${GITHUB_REPO}/releases/download/${VERSION}/ultradag-node${VARIANT}-linux-x86_64.tar.gz" \
-o /tmp/node.tar.gz && \
tar -xzf /tmp/node.tar.gz -C /usr/local/bin/ && \
mv /usr/local/bin/ultradag-node${VARIANT}-linux-x86_64 /usr/local/bin/ultradag-node && \
chmod +x /usr/local/bin/ultradag-node && \
rm /tmp/node.tar.gz
COPY tools/operations/utilities/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && mkdir -p /data
EXPOSE 9333 10333
ENTRYPOINT ["docker-entrypoint.sh"]