node.bcrypt.js icon indicating copy to clipboard operation
node.bcrypt.js copied to clipboard

Alpine image installation does not work

Open nephix opened this issue 2 years ago • 1 comments

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

nephix avatar May 27 '22 22:05 nephix

Me too

xudongdong40 avatar Jun 27 '22 09:06 xudongdong40

We are now including alpine images in releases by default

recrsn avatar Oct 06 '22 17:10 recrsn