web3-proxy/Dockerfile

13 lines
446 B
Docker
Raw Normal View History

2022-04-23 21:00:03 +03:00
FROM rust:1-buster as builder
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-05-06 01:28:20 +03:00
cargo install --path ./web3-proxy
2022-04-23 21:00:03 +03:00
FROM debian:buster-slim
# RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/web3-proxy /usr/local/bin/web3-proxy
CMD ["web3-proxy"]