Install OpenSSL and build tools in Dockerfile

Added OpenSSL and build tools for native modules installation.
This commit is contained in:
Steven Noack 2025-12-11 07:21:32 +01:00 committed by GitHub
parent 433cb4c129
commit 69dfdc8b95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,8 @@
FROM node:18-alpine
# Install OpenSSL and build tools for native modules
RUN apk add --no-cache openssl openssl-dev python3 make g++
# Install pnpm
RUN npm install -g pnpm
@ -8,18 +11,18 @@ WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml ./
# Install dependencies
# Install dependencies (rebuild native modules)
RUN pnpm install --force
# Copy source
COPY . .
# Generate Prisma client
RUN npx prisma generate
# Build
RUN pnpm run build
# Run prisma migrations
RUN npx prisma generate
# Create config directory
RUN mkdir -p /app/config