fix dockerfile error

update nextjs config
This commit is contained in:
DefectingCat
2023-11-10 15:10:56 +08:00
parent 2341e7a3f9
commit 6038bb731b
2 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,8 @@ FROM base AS deps
WORKDIR /app
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache libc6-compat
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# && apk add --no-cache libc6-compat
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./

View File

@ -15,6 +15,7 @@ const nextConfig = {
// images: isExport ? { unoptimized: true } : {},
experimental: {
webpackBuildWorker: true,
mdxRs: true,
},
compiler: {
removeConsole: process.env.NODE_ENV === 'production',