Add multiple stages to Dockerfile to run 'seed'
This commit is contained in:
parent
beb72080cb
commit
7f42fd8799
|
|
@ -20,3 +20,9 @@ RUN cargo fetch --verbose
|
|||
COPY . .
|
||||
|
||||
RUN rustc -V; cargo -V; rustup -V; cargo test --all && cargo build --release
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=base /zebra/target/release/zebrad .
|
||||
ENV PORT 8233
|
||||
CMD ["./zebrad seed"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue