ZeroTierOne/ext/central-controller-docker/Dockerfile

16 lines
663 B
Docker
Raw Normal View History

2019-08-26 19:19:50 +00:00
# Dockerfile for ZeroTier Central Controllers
2023-07-06 17:12:29 +00:00
FROM registry.zerotier.com/zerotier/ctlbuild: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
RUN export PATH=$PATH:~/.cargo/bin && cd ZeroTierOne && make clean && make central-controller -j8
2023-07-06 17:12:29 +00:00
FROM registry.zerotier.com/zerotier/ctlrun:latest
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
RUN echo "/usr/local/lib64" > /etc/ld.so.conf.d/usr-local-lib64.conf && ldconfig
2019-08-26 19:19:50 +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