fix: explicit package.json copy in Dockerfile
Some checks failed
Build and Deploy / build-and-push (push) Failing after 27s
Some checks failed
Build and Deploy / build-and-push (push) Failing after 27s
This commit is contained in:
@@ -4,7 +4,7 @@ FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and install all dependencies (including devDependencies for TypeScript)
|
||||
COPY package*.json ./
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy source code and build
|
||||
@@ -17,7 +17,7 @@ FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and install ONLY production dependencies
|
||||
COPY package*.json ./
|
||||
COPY package.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy built code from the builder stage
|
||||
|
||||
Reference in New Issue
Block a user