kelektiv / node.bcrypt.js

bcrypt for NodeJs
MIT License
7.43k stars 510 forks source link

Alpine image installation does not work #934

Closed nephix closed 1 year ago

nephix commented 2 years ago

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
xudongdong40 commented 2 years ago

Me too

recrsn commented 1 year ago

We are now including alpine images in releases by default