FROM ubuntu:19.10 as builder RUN apt-get update && apt-get install -y build-essential RUN apt-get install -y curl git RUN useradd -m -d /home/wownero-explorer wownero-explorer RUN mkdir -p /srv && chown -R wownero-explorer:wownero-explorer /srv USER wownero-explorer WORKDIR /srv RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | RUSTUP_HOME=/home/wownero-explorer/.rustup sh -s -- -y RUN git clone https://git.wownero.com/lza_menace/wownero-explorer && \ cd wownero-explorer && \ ~/.cargo/bin/rustup override set nightly && \ ~/.cargo/bin/cargo build --release FROM ubuntu:19.10 COPY --from=builder /srv/wownero-explorer/target/release/wownero-explorer /bin/wownero-explorer