Files
zeronsd/Dockerfile
Erik Hollensbe e484c5248d Docker fixes
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-21 07:09:16 -07:00

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"]