Skip to content

Commit

Permalink
added env variables in Docker.offchain
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks committed Jul 15, 2024
1 parent 78f2cc3 commit 63eab42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile.offchain
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 63eab42

Please sign in to comment.