fix: add next.config.js file to docker context

This commit is contained in:
Sonny
2023-11-21 18:05:29 +01:00
parent 1feb551093
commit 0bb5a3bcc3

View File

@@ -6,7 +6,7 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json package-lock.json* ./
RUN npm ci
RUN npm ci --production
# Rebuild the source code only when needed
FROM base AS builder
@@ -30,6 +30,7 @@ RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/next.config.js ./next.config.js
# Set the correct permission for prerender cache
RUN mkdir .next