Explicit WORKDIR for runner stage

This commit is contained in:
Deirdre Connolly 2020-06-15 21:15:51 -04:00 committed by Deirdre Connolly
parent 84c34b2e48
commit 29117f7c73
1 changed files with 2 additions and 7 deletions

View File

@ -12,20 +12,15 @@ ENV CARGO_HOME /zebra/.cargo/
# Copy local code to the container image.
# Assumes that we are in the git repo.
COPY . .
RUN cargo fetch --verbose
COPY . .
RUN rustc -V; cargo -V; rustup -V; cargo test --all && cargo build --release
FROM debian:buster-slim
WORKDIR /zebra
COPY --from=builder /zebra/target/release/zebrad .
EXPOSE 8233
EXPOSE 18233
ENTRYPOINT [ "./zebrad" ]
CMD [ "seed" ]
CMD [ "./zebrad", "seed" ]