Files

21 lines
671 B
Docker
Raw Permalink Normal View History

FROM debian:latest as rustenv
2021-05-11 21:50:16 -07:00
2021-05-12 02:18:25 -07:00
ARG IS_LOCAL=0
2021-05-11 21:50:16 -07:00
ARG VERSION=main
ARG IS_TAG=0
2021-05-12 02:18:25 -07:00
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
2021-05-12 02:18:25 -07:00
RUN sh cargo-docker.sh
2021-05-11 21:50:16 -07:00
FROM debian:latest
2022-05-21 07:09:16 -07:00
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
2021-05-11 21:50:16 -07:00
2021-05-31 23:50:34 -07:00
ENTRYPOINT ["/usr/bin/zeronsd"]