node.bcrypt.js
node.bcrypt.js copied to clipboard
Alpine image installation does not work
https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#alpine-linux-based-images says to run:
apk --no-cache add --virtual builds-deps build-base python
But in a node:16-alpine
image it results in:
May 27 10:16:16 PM > [stage-1 2/19] RUN apk --no-cache add --virtual builds-deps build-base python:
May 27 10:16:16 PM #9 0.294 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
May 27 10:16:16 PM #9 0.704 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
May 27 10:16:16 PM #9 1.582 ERROR: unable to select packages:
May 27 10:16:16 PM #9 1.695 python (no such package):
May 27 10:16:16 PM #9 1.695 required by: builds-deps-20220527.211616[python]
The solution is to run:
apk --no-cache add --virtual builds-deps build-base python3
ln -sf python3 /usr/bin/python
Me too
We are now including alpine images in releases by default