mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 20:58:14 -05:00
addbuildtag
This commit is contained in:
parent
fecd7463c9
commit
8c78edc441
@ -1,6 +1,8 @@
|
|||||||
FROM alpine:3.14 as builder
|
FROM alpine:3.14 as builder
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
|
ARG TAG=main
|
||||||
|
ENV TAG=${TAG}
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD ./entrypoint.sh /app/entrypoint.sh
|
ADD ./entrypoint.sh /app/entrypoint.sh
|
||||||
@ -19,6 +21,8 @@ RUN set -x\
|
|||||||
&& source "$HOME/.cargo/env"\
|
&& source "$HOME/.cargo/env"\
|
||||||
&& git clone https://github.com/zerotier/ZeroTierOne.git\
|
&& git clone https://github.com/zerotier/ZeroTierOne.git\
|
||||||
&& cd ZeroTierOne\
|
&& cd ZeroTierOne\
|
||||||
|
&& git checkout ${TAG}\
|
||||||
|
&& echo "切换到tag:${TAG}"\
|
||||||
&& make ZT_SYMLINK=1 \
|
&& make ZT_SYMLINK=1 \
|
||||||
&& make\
|
&& make\
|
||||||
&& make install\
|
&& make install\
|
||||||
|
Loading…
Reference in New Issue
Block a user