1
0
Эх сурвалжийг харах

new env var $IPFS_INIT_PROFILE

Fabian Peter Hammerle 5 жил өмнө
parent
commit
1b67fbe898
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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"]