Explicit WORKDIR for runner stage
This commit is contained in:
parent
84c34b2e48
commit
29117f7c73
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue