Pass build args to runtime image as env vars
This commit is contained in:
parent
f6afec2be8
commit
ee54a59ee2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue