Skip to content

Instantly share code, notes, and snippets.

@U1F30C
Created March 25, 2024 00:11
Show Gist options
  • Select an option

  • Save U1F30C/39ed1ffd82dd05f05dd08d14ec6ae10d to your computer and use it in GitHub Desktop.

Select an option

Save U1F30C/39ed1ffd82dd05f05dd08d14ec6ae10d to your computer and use it in GitHub Desktop.
build brcypt binary in docker to solve depencencies error loop
# to know the right version use
# cat /etc/os-release
# node --version
FROM node:14-buster as build
WORKDIR /app
COPY . ./
RUN npm i
CMD ls
{
"name": "bcrypt-builder",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"bcrypt": "^5.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment