standalone?

This commit is contained in:
Nomi Nonsense (Nonszy) 2025-02-18 22:28:11 +07:00
parent 2307740347
commit a11ea38c88
2 changed files with 9 additions and 2 deletions

View File

@ -9,7 +9,7 @@ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile RUN yarn install --frozen-lockfile
COPY . . COPY . .
COPY ./src/app/favicon.ico ./public/favicon.ico # COPY ./src/app/favicon.ico ./public/favicon.ico
RUN yarn build RUN yarn build
@ -17,8 +17,13 @@ FROM node:18-alpine AS runner
WORKDIR /app WORKDIR /app
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --gid 1001 nextjs
ENV NODE_ENV production ENV NODE_ENV production
USER nextjs
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
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

View File

@ -8,7 +8,9 @@ const nextConfig = {
pathname: '/1BCeG1aTiBAAAAAd/temptation-stairway-ena.gif' pathname: '/1BCeG1aTiBAAAAAd/temptation-stairway-ena.gif'
} }
] ]
} },
output: 'standalone',
productionBrowserSourceMaps: false
}; };
export default nextConfig; export default nextConfig;