refactor
This commit is contained in:
parent
cdd4b3ca1f
commit
67e9ce757f
|
@ -3,11 +3,14 @@ FROM node:18-alpine as build
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# Install build dependencies for native modules
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production
|
||||
# Clean install with full dependencies (needed for build)
|
||||
RUN npm ci
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
|
Loading…
Reference in New Issue