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

chore: fix docker images #3654

Merged
merged 2 commits into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile.latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mhart/alpine-node:15
FROM node:16-alpine

ENV IPFS_VERSION=latest
ENV IPFS_MONITORING=1
Expand All @@ -7,9 +7,12 @@ ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'

RUN apk add --no-cache git python3 build-base

RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION"
# Hopefully remove when https://github.com/node-webrtc/node-webrtc/pull/694 is merged
RUN npm install -g @mapbox/node-pre-gyp
RUN npm install -g ipfs@"$IPFS_VERSION"

# Make the image a bit smaller
RUN npm uninstall -g @mapbox/node-pre-gyp
RUN npm cache clear --force
RUN apk del build-base python3 git

Expand Down
7 changes: 5 additions & 2 deletions Dockerfile.next
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mhart/alpine-node:15
FROM node:16-alpine

ENV IPFS_VERSION=next
ENV IPFS_MONITORING=1
Expand All @@ -7,9 +7,12 @@ ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'

RUN apk add --no-cache git python3 build-base

RUN npm install --unsafe-perm -g ipfs@"$IPFS_VERSION"
# Hopefully remove when https://github.com/node-webrtc/node-webrtc/pull/694 is merged
RUN npm install -g @mapbox/node-pre-gyp
RUN npm install -g ipfs@"$IPFS_VERSION"

# Make the image a bit smaller
RUN npm uninstall -g @mapbox/node-pre-gyp
RUN npm cache clear --force
RUN apk del build-base python3 git

Expand Down