mirror of
https://github.com/zyclonite/zerotier-docker.git
synced 2024-12-13 09:51:04 +01:00
switch to alpine parent
This commit is contained in:
parent
a48626c110
commit
1956428abd
31
Dockerfile
31
Dockerfile
@ -1,24 +1,23 @@
|
|||||||
FROM debian:buster-slim
|
FROM alpine:3.11 as builder
|
||||||
|
|
||||||
# zerotier-one version
|
|
||||||
ARG ZT_VERSION=1.4.6
|
ARG ZT_VERSION=1.4.6
|
||||||
|
|
||||||
LABEL maintainer="Lukas Prettenthaler (zyclonite)"
|
RUN apk add --update alpine-sdk linux-headers \
|
||||||
LABEL version="$ZT_VERSION"
|
&& git clone --depth 1 --branch ${ZT_VERSION} https://github.com/zerotier/ZeroTierOne.git /src \
|
||||||
LABEL description="Containerized ZeroTier One for use on CoreOS or other Docker-only Linux hosts."
|
&& cd /src \
|
||||||
|
&& make -f make-linux.mk
|
||||||
|
|
||||||
# Configure environment
|
FROM alpine:3.11
|
||||||
ENV ZT_VERSION=${ZT_VERSION}
|
LABEL version="1.4.6"
|
||||||
|
LABEL description="ZeroTier One Docker-only Linux hosts"
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apk add --update libgcc libc6-compat libstdc++
|
||||||
&& apt-get install -y gnupg2 \
|
|
||||||
&& apt-key adv --fetch-keys http://download.zerotier.com/contact%40zerotier.com.gpg \
|
|
||||||
&& echo "deb http://download.zerotier.com/debian/buster buster main" > /etc/apt/sources.list.d/zerotier.list \
|
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install -y zerotier-one=${ZT_VERSION} \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
VOLUME /var/lib/zerotier-one
|
EXPOSE 9993/udp
|
||||||
EXPOSE 9993
|
|
||||||
|
COPY --from=builder /src/zerotier-one /usr/sbin/
|
||||||
|
RUN mkdir -p /var/lib/zerotier-one \
|
||||||
|
&& ln -s /usr/sbin/zerotier-one /usr/sbin/zerotier-idtool \
|
||||||
|
&& ln -s /usr/sbin/zerotier-one /usr/sbin/zerotier-cli
|
||||||
|
|
||||||
ENTRYPOINT ["zerotier-one"]
|
ENTRYPOINT ["zerotier-one"]
|
||||||
|
Loading…
Reference in New Issue
Block a user