mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 12:48:14 -05:00
addbuildtag
This commit is contained in:
parent
fecd7463c9
commit
8c78edc441
@ -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\
|
||||
|
Loading…
Reference in New Issue
Block a user