Make Next.js create production builds of web app for Docker images

This commit is contained in:
Debanjum
2024-11-24 12:59:17 -08:00
parent 710e00ad9e
commit f51e0f7859
2 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ RUN sed -i "s/dynamic = \\[\"version\"\\]/version = \"$VERSION\"/" pyproject.tom
# Build Web App
FROM node:20-alpine AS web-app
# Set build optimization env vars
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
COPY src/interface/web /app/src/interface/web
WORKDIR /app/src/interface/web
RUN yarn install --frozen-lockfile && \