Explorar o código

new env var $IPFS_INIT_PROFILE

Fabian Peter Hammerle %!s(int64=5) %!d(string=hai) anos
pai
achega
1b67fbe898
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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"]