mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 12:48:14 -05:00
Merge branch 'master' of github.com:xubiaolin/docker-zerotier-planet
This commit is contained in:
commit
cd9c5e5b4c
@ -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\
|
||||
|
@ -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
|
||||
|
||||
```
|
||||
|
2
build.sh
2
build.sh
@ -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 .
|
@ -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
|
||||
# }
|
||||
|
Loading…
Reference in New Issue
Block a user