mirror of
https://git.wownero.com/lza_menace/wownero-explorer.git
synced 2024-08-15 01:03:26 +00:00
streamline the container builds and only pick out the compiled binary
This commit is contained in:
parent
308a0b59e4
commit
b7f30f880e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue