From 37656a596c38d5d85dd8a36dc7f18cf6eb0019ff Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 24 Jan 2023 23:21:39 -0800 Subject: [PATCH] add openssl to maybe fix coredumps --- Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2614085b..ba7c30be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,11 @@ FROM rust:1-bullseye as builder +# our app uses rust-tls, but the sentry crate only uses openssl +RUN set -eux; \ + apt-get update; \ + apt-get install -y libssl-dev; \ + rm -rf /var/lib/apt/lists/* + ENV PATH /root/.foundry/bin:$PATH RUN curl -L https://foundry.paradigm.xyz | bash && foundryup @@ -12,10 +18,16 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ FROM debian:bullseye-slim +# our app uses rust-tls, but the sentry crate only uses openssl +RUN set -eux; \ + apt-get update; \ + apt-get install -y libssl-dev; \ + rm -rf /var/lib/apt/lists/* + COPY --from=builder /opt/bin/* /usr/local/bin/ ENTRYPOINT ["web3_proxy_cli"] CMD [ "--config", "/web3-proxy.toml", "proxyd" ] # TODO: lower log level when done with prototyping -ENV RUST_LOG "web3_proxy=debug" +ENV RUST_LOG "warn,web3_proxy=debug,web3_proxy_cli=debug"