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 authored and dndll committed Jul 16, 2024
1 parent a0bd60e commit 522f940
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 522f940

Please sign in to comment.