mirror of
https://github.com/zerotier/zeronsd.git
synced 2026-05-22 16:25:37 -07:00
e484c5248d
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
21 lines
671 B
Docker
21 lines
671 B
Docker
FROM debian:latest as rustenv
|
|
|
|
ARG IS_LOCAL=0
|
|
ARG VERSION=main
|
|
ARG IS_TAG=0
|
|
|
|
COPY . /code
|
|
WORKDIR /code
|
|
RUN apt-get update -qq && apt-get install curl pkg-config build-essential libssl-dev ca-certificates -y && apt-get autoclean -y && apt-get clean -y
|
|
RUN curl -sSL sh.rustup.rs >/usr/local/bin/rustup-dl && chmod +x /usr/local/bin/rustup-dl && /usr/local/bin/rustup-dl -y --default-toolchain stable
|
|
|
|
FROM rustenv as buildenv
|
|
|
|
RUN sh cargo-docker.sh
|
|
|
|
FROM debian:latest
|
|
RUN apt-get update -qq && apt-get install ca-certificates -y && apt-get autoclean -y && apt-get clean -y
|
|
COPY --from=buildenv /root/.cargo/bin/zeronsd /usr/bin/zeronsd
|
|
|
|
ENTRYPOINT ["/usr/bin/zeronsd"]
|