From b7f30f880e25550d0887c06f4f7d58de7055fe26 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 3 Jul 2020 02:27:07 -0700 Subject: [PATCH] streamline the container builds and only pick out the compiled binary --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 586d474..bd96072 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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