Browse Source

refactor: moved $IPFS_CONFIG_PATH definition from entrypoint to Dockerfile

Fabian Peter Hammerle 5 years ago
parent
commit
66e087d743
2 changed files with 2 additions and 3 deletions
  1. 2 1
      Dockerfile
  2. 0 2
      entrypoint.sh

+ 2 - 1
Dockerfile

@@ -22,7 +22,8 @@ RUN wget -O- https://dist.ipfs.io/go-ipfs/v${IPFS_VERSION}/go-ipfs_v${IPFS_VERSI
     && mv /tmp/go-ipfs/ipfs /usr/local/bin \
     && rm -r /tmp/go-ipfs
 
-ENV IPFS_INIT_PROFILE=server \
+ENV IPFS_CONFIG_PATH="${IPFS_PATH}/config" \
+    IPFS_INIT_PROFILE=server \
     IPFS_API_ADDR=/ip4/0.0.0.0/tcp/5001 \
     IPFS_SWARM_ADDRS=/ip4/0.0.0.0/tcp/4001 \
     IPFS_BOOTSTRAP_ADD=

+ 0 - 2
entrypoint.sh

@@ -1,7 +1,5 @@
 #!/bin/sh
 
-export IPFS_CONFIG_PATH="$IPFS_PATH/config"
-
 function ipfs_config_jq_edit {
     tmp=$(mktemp)
     (set -x; jq "$@" < "$IPFS_CONFIG_PATH" > "$tmp")