mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-08-01 07:21:42 +00:00
Install OpenSSL and build tools in Dockerfile
Added OpenSSL and build tools for native modules installation.
This commit is contained in:
parent
433cb4c129
commit
69dfdc8b95
11
Dockerfile
11
Dockerfile
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user