2018-10-20 19:41:55 +00:00
|
|
|
FROM debian:stretch as builder
|
|
|
|
|
|
|
|
## Supports x86_64, x86, arm, and arm64
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y curl gnupg
|
|
|
|
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 0x1657198823e52a61 && \
|
|
|
|
echo "deb http://download.zerotier.com/debian/stretch stretch main" > /etc/apt/sources.list.d/zerotier.list
|
|
|
|
RUN apt-get update && apt-get install -y zerotier-one=1.2.12
|
|
|
|
|
2016-07-27 00:08:09 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
|
|
|
|
|
2018-10-20 19:41:55 +00:00
|
|
|
LABEL version="1.2.12"
|
2016-07-27 00:08:09 +00:00
|
|
|
LABEL description="Containerized ZeroTier One for use on CoreOS or other Docker-only Linux hosts."
|
|
|
|
|
|
|
|
# Uncomment to build in container
|
|
|
|
#RUN apk add --update alpine-sdk linux-headers
|
|
|
|
|
|
|
|
RUN apk add --update libgcc libstdc++
|
|
|
|
|
|
|
|
RUN mkdir -p /var/lib/zerotier-one
|
|
|
|
|
2018-10-20 19:41:55 +00:00
|
|
|
COPY --from=builder /var/lib/zerotier-one/zerotier-cli /usr/sbin/zerotier-cli
|
|
|
|
COPY --from=builder /var/lib/zerotier-one/zerotier-idtool /usr/sbin/zerotier-idtool
|
|
|
|
COPY --from=builder /usr/sbin/zerotier-one /usr/sbin/zerotier-one
|
|
|
|
|
2016-07-27 00:08:09 +00:00
|
|
|
ADD main.sh /
|
|
|
|
RUN chmod 0755 /main.sh
|
2018-10-20 19:41:55 +00:00
|
|
|
ENTRYPOINT ["/main.sh"]
|
|
|
|
CMD ["zerotier-one"]
|