mirror of
https://github.com/zyclonite/zerotier-docker.git
synced 2025-01-22 04:58:34 +01:00
optimize dockerfile
This commit is contained in:
parent
040a5ce624
commit
f86f73a9e0
20
Dockerfile
20
Dockerfile
@ -17,16 +17,20 @@ FROM ${ALPINE_IMAGE}:${ALPINE_VERSION}
|
|||||||
|
|
||||||
ARG ZT_VERSION
|
ARG ZT_VERSION
|
||||||
|
|
||||||
LABEL version="${ZT_VERSION}"
|
LABEL org.opencontainers.image.title="zerotier" \
|
||||||
LABEL description="ZeroTier One as Docker Image"
|
org.opencontainers.image.version="${ZT_VERSION}" \
|
||||||
|
org.opencontainers.image.description="ZeroTier One as Docker Image" \
|
||||||
|
org.opencontainers.image.licenses="MIT" \
|
||||||
|
org.opencontainers.image.source="https://github.com/zyclonite/zerotier-docker"
|
||||||
|
|
||||||
RUN apk add --update --no-cache libc6-compat libstdc++
|
COPY --from=builder /src/zerotier-one /usr/sbin/
|
||||||
|
|
||||||
|
RUN apk add --no-cache --purge --clean-protected --update libc6-compat libstdc++ \
|
||||||
|
&& 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 \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
EXPOSE 9993/udp
|
EXPOSE 9993/udp
|
||||||
|
|
||||||
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