This commit is contained in:
g
2025-02-07 05:26:00 +00:00
parent 3205bb1a6b
commit 0edb913dea
4 changed files with 217 additions and 1 deletions

View File

@@ -22,10 +22,13 @@ FROM node:18-alpine AS runner
# Set working directory inside the container
WORKDIR /app
RUN mkdir -p public
# Copy only necessary files from builder
COPY --from=builder /app/package.json /app/package-lock.json ./
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/public ./public || true
COPY --from=builder /app/node_modules ./node_modules
# Expose port for Next.js