forked from zscboy/titan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (19 loc) · 833 Bytes
/
Dockerfile
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
26
FROM ubuntu:22.04
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ focal main restricted' > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y ca-certificates
RUN apt-get install -yq tzdata && \
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
RUN wget https://github.com/Titannet-dao/titan-node/releases/download/v0.1.19/titan-l1-guardian; \
unzip titan-l1-guardian -d /usr/bin; \
chmod 0755 /usr/bin/titan-l1-guardian;
VOLUME /mnt/storage;
VOLUME /root/.titanguardian
ENV TITAN_METADATAPATH=/mnt/storage
ENV TITNA_ASSETSPATHS=/mnt/storage
ARG CODE
ARG URL="https://cassini-locator.titannet.io:5000/rpc/v0"
EXPOSE 2345
ENTRYPOINT ["/usr/bin/titan-l1-guardian", "daemon", "start", "--init", "--url $URL", "--code $CODE"]