Skip to content

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

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

anupborker wants to merge 1 commit into
code100x: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

This branch has not been deployed

No deployments