Skip to content

Commit

Permalink
Don't remove FEATURES
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Jan 29, 2025
1 parent e0e2048 commit e2abaf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ FROM debian:bookworm-slim AS runtime
COPY --from=release /usr/local/bin/zebrad /usr/local/bin/
COPY --from=release /usr/local/bin/entrypoint.sh /usr/local/bin/

ARG FEATURES
ENV FEATURES=${FEATURES}

# Create a non-privileged system user for running `zebrad`.
ARG USER="zebra"
ENV USER=${USER}
Expand Down
3 changes: 0 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,13 @@ EOF
endpoint_addr = "${METRICS_ENDPOINT_ADDR}:${METRICS_ENDPOINT_PORT}"
EOF
fi

if [[ -n "${RPC_PORT}" ]]; then
cat <<EOF >>"$1"
[rpc]
cookie_dir = "${ZEBRA_CACHED_STATE_DIR}"
listen_addr = "${RPC_LISTEN_ADDR}:${RPC_PORT}"
EOF
fi

if [[ -n "${LOG_FILE}" ]] || [[ -n "${LOG_COLOR}" ]] || [[ -n "${TRACING_ENDPOINT_ADDR}" ]]; then
cat <<EOF >>"$1"
[tracing]
Expand Down Expand Up @@ -123,7 +121,6 @@ use_color = false
EOF
fi
fi

if [[ -n "${MINER_ADDRESS}" ]]; then
cat <<EOF >>"$1"
[mining]
Expand Down

0 comments on commit e2abaf4

Please sign in to comment.