last 2 changes

This commit is contained in:
2026-01-19 08:43:25 -05:00
parent ec6c88fa90
commit 60d034d643
2 changed files with 17 additions and 12 deletions
+11 -12
View File
@@ -1,22 +1,21 @@
# Stage 1: Build the static assets
FROM node:20-alpine as builder
FROM node:20-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
RUN npm ci --only=production
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
# Run the Next.js build command
RUN npm run build
# Stage 2: Run the production application (Next.js server)
FROM node:20-alpine
FROM node:20-alpine AS runner
WORKDIR /app
# Copy only the necessary files for running the app
ENV NODE_ENV=production
COPY --from=deps /app/node_modules ./node_modules
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/public ./public
# Set environment variables
ENV NODE_ENV production
COPY --from=builder /app/package.json ./package.json
EXPOSE 3000
# Run the Next.js production server
CMD ["npm", "start"]
+6
View File
@@ -3,6 +3,12 @@ const nextConfig = {
experimental: {
appDir: true,
},
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
async rewrites() {
return [