mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 20:58:14 -05:00
feat: 🎸 重新格式化
This commit is contained in:
parent
aa89181fb8
commit
dd16207cd5
@ -2,7 +2,7 @@ FROM ubuntu:latest
|
|||||||
ENV TZ=Asia/Shanghai \
|
ENV TZ=Asia/Shanghai \
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
Add . /app
|
ADD . /app
|
||||||
|
|
||||||
RUN cd /app && sh init.sh
|
RUN cd /app && sh init.sh
|
||||||
|
|
||||||
|
6
init.sh
6
init.sh
@ -9,12 +9,12 @@ deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe mu
|
|||||||
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||||
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
|
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
|
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||||
"> /etc/apt/sources.list
|
" >/etc/apt/sources.list
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
apt install -y tzdata
|
apt install -y tzdata
|
||||||
ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime
|
ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime
|
||||||
echo ${TZ} > /etc/timezone
|
echo ${TZ} >/etc/timezone
|
||||||
dpkg-reconfigure --frontend noninteractive tzdata
|
dpkg-reconfigure --frontend noninteractive tzdata
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ echo 'HTTP_PORT=3443' >.env
|
|||||||
echo 'NODE_ENV=production' >>.env
|
echo 'NODE_ENV=production' >>.env
|
||||||
echo 'HTTP_ALL_INTERFACES=true' >>.env
|
echo 'HTTP_ALL_INTERFACES=true' >>.env
|
||||||
|
|
||||||
cd /var/lib/zerotier-one && zerotier-idtool initmoon identity.public > moon.json
|
cd /var/lib/zerotier-one && zerotier-idtool initmoon identity.public >moon.json
|
||||||
cd /app/patch && python3 patch.py
|
cd /app/patch && python3 patch.py
|
||||||
cd /var/lib/zerotier-one && zerotier-idtool genmoon moon.json && mkdir moons.d && cp ./*.moon ./moons.d
|
cd /var/lib/zerotier-one && zerotier-idtool genmoon moon.json && mkdir moons.d && cp ./*.moon ./moons.d
|
||||||
cd /opt/ZeroTierOne/attic/world/ && sh build.sh
|
cd /opt/ZeroTierOne/attic/world/ && sh build.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user