Browse Source

new env var $IPFS_INIT_PROFILE

Fabian Peter Hammerle 5 years ago
parent
commit
1b67fbe898
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -28,4 +28,5 @@ RUN wget -O- https://dist.ipfs.io/go-ipfs/v${IPFS_VERSION}/go-ipfs_v${IPFS_VERSI
 
 USER ipfs
 EXPOSE 4001/tcp
-CMD ["ipfs", "daemon", "--init", "--init-profile", "server"]
+ENV IPFS_INIT_PROFILE server
+CMD ["ipfs", "daemon", "--init", "--init-profile", "$IPFS_INIT_PROFILE"]