Pass build args to runtime image as env vars

This commit is contained in:
Marek 2023-07-07 20:52:20 +02:00
parent f6afec2be8
commit ee54a59ee2
1 changed files with 18 additions and 0 deletions

View File

@ -180,6 +180,24 @@ RUN apt-get update && \
ARG NETWORK
ENV NETWORK=${NETWORK:-Mainnet}
ARG RPC_PORT
ENV RPC_PORT=${RPC_PORT}
ARG FEATURES
ENV FEATURES=${FEATURES}
ARG RUST_BACKTRACE
ENV RUST_BACKTRACE=${RUST_BACKTRACE:-0}
ARG RUST_LIB_BACKTRACE
ENV RUST_LIB_BACKTRACE=${RUST_LIB_BACKTRACE:-0}
ARG COLORBT_SHOW_HIDDEN
ENV COLORBT_SHOW_HIDDEN=${COLORBT_SHOW_HIDDEN:-0}
ARG RUST_LOG
ENV RUST_LOG=${RUST_LOG:-info}
# Expose configured ports
EXPOSE 8233 18233