Merge branch 'master' of github.com:xubiaolin/docker-zerotier-planet

This commit is contained in:
xubiaolin 2024-02-28 14:04:15 +08:00
commit cd9c5e5b4c
4 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,8 @@
FROM alpine:3.14 as builder
ENV TZ=Asia/Shanghai
ARG TAG=main
ENV TAG=${TAG}
WORKDIR /app
ADD ./entrypoint.sh /app/entrypoint.sh
@ -19,6 +21,8 @@ RUN set -x\
&& source "$HOME/.cargo/env"\
&& git clone https://github.com/zerotier/ZeroTierOne.git\
&& cd ZeroTierOne\
&& git checkout ${TAG}\
&& echo "切换到tag:${TAG}"\
&& make ZT_SYMLINK=1 \
&& make\
&& make install\

View File

@ -396,7 +396,7 @@ services:
- ./data/zerotier/dist:/app/dist
- ./data/zerotier/ztncui:/app/ztncui
- ./data/zerotier/one:/var/lib/zerotier-one
- ./data/config:/app/config
- ./data/zerotier/config:/app/config
restart: unless-stopped
```

View File

@ -1,3 +1,3 @@
#!/bin/bash
docker build -t xubiaolin/zerotier-planet:latest .
docker build --build-arg TAG=1.12.2 -t xubiaolin/zerotier-planet:latest .

View File

@ -230,7 +230,7 @@ uninstall() {
# -v $(pwd)/data/zerotier/dist:/app/dist \
# -v $(pwd)/data/zerotier/ztncui:/app/ztncui \
# -v $(pwd)/data/zerotier/one:/var/lib/zerotier-one \
# -v $(pwd)/data/config:/app/config \
# -v $(pwd)/data/zerotier/config:/app/config \
# --restart unless-stopped \
# xubiaolin/zerotier-planet:latest
# }