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.
|
# Copy local code to the container image.
|
||||||
# Assumes that we are in the git repo.
|
# Assumes that we are in the git repo.
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo fetch --verbose
|
RUN cargo fetch --verbose
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN rustc -V; cargo -V; rustup -V; cargo test --all && cargo build --release
|
RUN rustc -V; cargo -V; rustup -V; cargo test --all && cargo build --release
|
||||||
|
|
||||||
|
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
|
WORKDIR /zebra
|
||||||
COPY --from=builder /zebra/target/release/zebrad .
|
COPY --from=builder /zebra/target/release/zebrad .
|
||||||
EXPOSE 8233
|
EXPOSE 8233
|
||||||
EXPOSE 18233
|
EXPOSE 18233
|
||||||
|
CMD [ "./zebrad", "seed" ]
|
||||||
ENTRYPOINT [ "./zebrad" ]
|
|
||||||
CMD [ "seed" ]
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue