Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 93e7dc4

Browse files
authored
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.
1 parent 3d68a44 commit 93e7dc4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile.latest

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ENV IPFS_MONITORING=1
55
ENV IPFS_PATH=/root/.jsipfs
66
ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'
77

8-
RUN apk add --no-cache git python build-base
8+
RUN apk add --no-cache git python3 build-base
99

1010
RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION"
1111

1212
# Make the image a bit smaller
1313
RUN npm cache clear --force
14-
RUN apk del build-base python git
14+
RUN apk del build-base python3 git
1515

1616
# Configure jsipfs
1717
RUN jsipfs init

Dockerfile.next

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ENV IPFS_MONITORING=1
55
ENV IPFS_PATH=/root/.jsipfs
66
ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'
77

8-
RUN apk add --no-cache git python build-base
8+
RUN apk add --no-cache git python3 build-base
99

1010
RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION"
1111

1212
# Make the image a bit smaller
1313
RUN npm cache clear --force
14-
RUN apk del build-base python git
14+
RUN apk del build-base python3 git
1515

1616
# Configure jsipfs
1717
RUN jsipfs init

0 commit comments

Comments
 (0)