fix: install devDeps in builder stage for tailwind/typescript (FIBEROPS-249)

This commit is contained in:
2026-04-01 03:59:41 +00:00
parent ff73898dac
commit 63cce69634

View File

@@ -1,9 +1,9 @@
FROM node:22-alpine AS builder FROM node:22-alpine AS builder
WORKDIR /app WORKDIR /app
# Install ALL deps (including devDeps like tailwindcss, typescript)
ENV NODE_ENV=development
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm ci
COPY . . COPY . .
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build RUN npm run build
@@ -12,11 +12,9 @@ FROM node:22-alpine AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
EXPOSE 3000 EXPOSE 3000
ENV PORT=3000 ENV PORT=3000
CMD ["node", "server.js"] CMD ["node", "server.js"]