Skip to content

Commit 5ecd87b

Browse files
committed
updating frontend dockerfile for failing build
1 parent 9bfde71 commit 5ecd87b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

frontend/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ WORKDIR /app
99

1010
# Copy package files
1111
COPY package*.json ./
12-
RUN npm ci --only=production
12+
RUN npm ci
1313

1414
# Rebuild the source code only when needed
1515
FROM base AS builder
1616
WORKDIR /app
1717
COPY --from=deps /app/node_modules ./node_modules
1818
COPY . .
19-
20-
# Build the application
19+
ENV NEXT_TELEMETRY_DISABLED=1
2120
RUN npm run build
22-
RUN echo "=== Static files ===" && find .next/static -name "*.css" -type f
23-
RUN echo "=== Standalone files ===" && ls -la .next/standalone/
24-
RUN echo "=== Static dir ===" && ls -la .next/static/
2521

2622
# Production image, copy all the files and run next
2723
FROM base AS runner

0 commit comments

Comments
 (0)