From 93e7dc43f1476a9a583f28cd8d9b30bb25ed9623 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 28 Apr 2021 16:22:27 +0100 Subject: [PATCH] chore: fix docker images (#3651) The python package has gone, we need to use python3 instead. There's a futher problem with npm not setting the $PATH properly so it fails as it can't find pbjs, but this is only necessary with gh dep versions which should go away with the next libp2p-kad-dht/libp2p-gossipsub releases. --- Dockerfile.latest | 4 ++-- Dockerfile.next | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.latest b/Dockerfile.latest index aceceb7983..085684d7fd 100644 --- a/Dockerfile.latest +++ b/Dockerfile.latest @@ -5,13 +5,13 @@ ENV IPFS_MONITORING=1 ENV IPFS_PATH=/root/.jsipfs ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3' -RUN apk add --no-cache git python build-base +RUN apk add --no-cache git python3 build-base RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION" # Make the image a bit smaller RUN npm cache clear --force -RUN apk del build-base python git +RUN apk del build-base python3 git # Configure jsipfs RUN jsipfs init diff --git a/Dockerfile.next b/Dockerfile.next index 3e2ad99d48..2c63a9f629 100644 --- a/Dockerfile.next +++ b/Dockerfile.next @@ -5,13 +5,13 @@ ENV IPFS_MONITORING=1 ENV IPFS_PATH=/root/.jsipfs ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3' -RUN apk add --no-cache git python build-base +RUN apk add --no-cache git python3 build-base RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION" # Make the image a bit smaller RUN npm cache clear --force -RUN apk del build-base python git +RUN apk del build-base python3 git # Configure jsipfs RUN jsipfs init