web3-proxy/Dockerfile

17 lines
536 B
Docker
Raw Normal View History

2022-05-12 22:58:26 +03:00
FROM rust:1-bullseye as builder
2022-04-23 21:00:03 +03:00
WORKDIR /usr/src/web3-proxy
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/src/web3-proxy/target \
2022-08-06 08:43:02 +03:00
cargo install --locked --path ./web3_proxy
2022-04-23 21:00:03 +03:00
2022-05-12 22:58:26 +03:00
FROM debian:bullseye-slim
2022-05-06 04:25:49 +03:00
2022-08-06 08:38:19 +03:00
COPY --from=builder /usr/local/cargo/bin/web3_proxy /usr/local/bin/web3_proxy
COPY --from=builder /usr/local/cargo/bin/web3_proxy_cli /usr/local/bin/web3_proxy_cli
ENTRYPOINT ["web3_proxy"]
2022-05-12 22:58:26 +03:00
# TODO: lower log level when done with prototyping
ENV RUST_LOG "web3_proxy=debug"