From 63eab428447ceeb2efe70f97b5e8fc15af270f8a Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Mon, 15 Jul 2024 21:27:19 +0300 Subject: [PATCH] added env variables in Docker.offchain --- Dockerfile.offchain | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile.offchain b/Dockerfile.offchain index 7583fbe..58b8b1d 100644 --- a/Dockerfile.offchain +++ b/Dockerfile.offchain @@ -23,7 +23,11 @@ RUN cp target/release/near-light-client /near/near-light-client FROM debian:bookworm-slim RUN apt-get update && apt-get install -y openssl libssl-dev pkg-config ca-certificates && rm -rf /var/lib/apt/lists/* COPY --from=build /near/near-light-client /usr/local/bin -COPY --from=build /near/default.toml /var/light-client.toml +COPY --from=build /near/config.toml /var/near-light-client/config.toml + +ENV NEAR_LIGHT_CLIENT_DIR=/var/near-light-client +ENV NEAR_LIGHT_CLIENT_CONFIG_FILE=/var/near-light-client/config.toml +ENV NEAR_LIGHT_CLIENT_MODE=default RUN ldd /usr/local/bin/near-light-client ENTRYPOINT ["/usr/local/bin/near-light-client"]