streamline the container builds and only pick out the compiled binary

master
lza_menace 4 years ago
parent 308a0b59e4
commit b7f30f880e

@ -1,4 +1,4 @@
FROM ubuntu:19.10
FROM ubuntu:19.10 as builder
RUN apt-get update && apt-get install -y build-essential
@ -17,6 +17,6 @@ RUN git clone https://git.wownero.com/lza_menace/wownero-explorer && \
~/.cargo/bin/rustup override set nightly && \
~/.cargo/bin/cargo build --release
WORKDIR /srv/wownero-explorer
FROM ubuntu:19.10
CMD './target/release/wownero-explorer'
COPY --from=builder /srv/wownero-explorer/target/release/wownero-explorer /bin/wownero-explorer