This commit is contained in:
@@ -6,8 +6,10 @@ WORKDIR /app
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
# Install dependencies and build dist
|
||||
RUN npm ci --only=production
|
||||
RUN npm run build --if-present
|
||||
|
||||
|
||||
# Stage 2: Production
|
||||
FROM node:20-alpine
|
||||
|
||||
Reference in New Issue
Block a user