mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 14:22:23 +00:00
29 lines
655 B
Docker
29 lines
655 B
Docker
|
# vim: ft=dockerfile
|
||
|
|
||
|
FROM ubuntu:21.04 as stage
|
||
|
|
||
|
RUN apt-get update -qq && apt-get -qq install make clang
|
||
|
COPY . .
|
||
|
RUN /usr/bin/make
|
||
|
RUN echo $PWD
|
||
|
RUN cp zerotier-one /usr/sbin
|
||
|
|
||
|
FROM ubuntu:21.04
|
||
|
|
||
|
COPY --from=stage /zerotier-one /usr/sbin
|
||
|
RUN ln -sf /usr/sbin/zerotier-one /usr/sbin/zerotier-idtool
|
||
|
RUN ln -sf /usr/sbin/zerotier-one /usr/sbin/zerotier-cli
|
||
|
|
||
|
RUN echo "${VERSION}" > /etc/zerotier-version
|
||
|
RUN rm -rf /var/lib/zerotier-one
|
||
|
|
||
|
|
||
|
RUN apt-get -qq update
|
||
|
RUN apt-get -qq install iproute2 net-tools fping 2ping iputils-ping iputils-arping
|
||
|
|
||
|
COPY entrypoint.sh.release /entrypoint.sh
|
||
|
RUN chmod 755 /entrypoint.sh
|
||
|
|
||
|
CMD []
|
||
|
ENTRYPOINT ["/entrypoint.sh"]
|