fix: explicit package.json copy in Dockerfile
Some checks failed
Build and Deploy / build-and-push (push) Failing after 27s

This commit is contained in:
Cauê Faleiros
2026-04-09 10:30:20 -03:00
parent 923705c83b
commit 6e7d266a72

View File

@@ -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