Skip to content

fix: update Dockerfile.dev to fix bcrypt and OpenSSL issues#1921

Open
anupborker wants to merge 1 commit intocode100x:mainfrom
anupborker:fix/docker-bcrypt-openssl
Open

fix: update Dockerfile.dev to fix bcrypt and OpenSSL issues#1921
anupborker wants to merge 1 commit intocode100x:mainfrom
anupborker:fix/docker-bcrypt-openssl

Conversation

@anupborker
Copy link
Copy Markdown

Problem

Docker setup failing on Linux due to:

  1. bcrypt native module not compiling
  2. OpenSSL 1.1 missing on Alpine 3.23

Fix

  • Change base image from node:20-alpine
    to node:20-bullseye-slim
  • Add build dependencies: openssl, python3, make, g++
  • Add --ignore-scripts=false to pnpm install
  • Add explicit bcrypt rebuild step
  • Fixes bcrypt_lib.node not found error on Linux

PR Fixes:

  • bcrypt compilation error
  • OpenSSL missing on Alpine 3.23

Resolves #[leave empty if no issue]

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request

- Change base image from node:20-alpine to node:20-bullseye-slim
- Add build dependencies: openssl, python3, make, g++
- Add --ignore-scripts=false to pnpm install
- Add explicit bcrypt rebuild step
- Fixes bcrypt_lib.node not found error on Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant