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

Commit

Permalink
chore: fix docker images (#3651)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
achingbrain authored Apr 28, 2021
1 parent 3d68a44 commit 93e7dc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.latest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.next
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93e7dc4

Please sign in to comment.