fuck this shit
This commit is contained in:
@@ -7,8 +7,8 @@ WORKDIR /app
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
# First install only production dependencies
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy source code and config files
|
||||
COPY . .
|
||||
@@ -23,10 +23,10 @@ FROM node:18-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
COPY --from=builder /app/package*.json ./
|
||||
|
||||
# Install production dependencies only
|
||||
RUN npm ci --only=production
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy necessary files from builder
|
||||
COPY --from=builder /app/.next ./.next/
|
||||
|
||||
Reference in New Issue
Block a user