2019-08-26 19:19:50 +00:00
|
|
|
# Dockerfile for ZeroTier Central Controllers
|
2021-08-20 16:22:44 +00:00
|
|
|
FROM registry.zerotier.com/zerotier/controller-builder:latest as builder
|
2019-08-26 19:19:50 +00:00
|
|
|
MAINTAINER Adam Ierymekno <adam.ierymenko@zerotier.com>, Grant Limberg <grant.limberg@zerotier.com>
|
2020-03-04 07:52:53 +00:00
|
|
|
ADD . /ZeroTierOne
|
2021-11-30 23:22:31 +00:00
|
|
|
RUN export PATH=$PATH:~/.cargo/bin && cd ZeroTierOne && make clean && make central-controller -j8
|
2019-11-20 21:56:26 +00:00
|
|
|
|
2021-08-20 16:22:44 +00:00
|
|
|
FROM registry.zerotier.com/zerotier/controller-run:latest
|
2019-11-20 21:56:26 +00:00
|
|
|
COPY --from=builder /ZeroTierOne/zerotier-one /usr/local/bin/zerotier-one
|
2019-08-26 19:19:50 +00:00
|
|
|
RUN chmod a+x /usr/local/bin/zerotier-one
|
2021-06-04 15:31:34 +00:00
|
|
|
RUN echo "/usr/local/lib64" > /etc/ld.so.conf.d/usr-local-lib64.conf && ldconfig
|
2019-08-26 19:19:50 +00:00
|
|
|
|
2019-11-20 21:56:26 +00:00
|
|
|
ADD ext/central-controller-docker/main.sh /
|
2019-08-26 19:19:50 +00:00
|
|
|
RUN chmod a+x /main.sh
|
|
|
|
|
|
|
|
ENTRYPOINT /main.sh
|