Refactor Dockerfile to simplify setup

Removed OpenSSL and build tools installation, simplified dependency installation process.
This commit is contained in:
Steven Noack 2025-12-11 07:26:58 +01:00 committed by GitHub
parent 42f40889f6
commit b9bbc2739f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,4 @@
FROM node:18-alpine
# Install OpenSSL and build tools for native modules
RUN apk add --no-cache openssl openssl-dev python3 make g++
FROM node:18
# Install pnpm
RUN npm install -g pnpm
@ -11,12 +8,9 @@ WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml ./
# Install dependencies (rebuild native modules)
# Install dependencies
RUN pnpm install --force
# Rebuild bcrypt for Alpine
RUN pnpm rebuild bcrypt
# Copy source
COPY . .