diff --git a/Dockerfile b/Dockerfile index 11ab1d8..161649a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,14 @@ FROM node:alpine AS deps RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json package-lock.json ./ -RUN yarn install --frozen-lockfile --registry=https://registry.npm.taobao.org +RUN npm install --frozen-lockfile --registry=https://registry.npm.taobao.org # Rebuild the source code only when needed FROM node:alpine AS builder WORKDIR /app COPY . . COPY --from=deps /app/node_modules ./node_modules -RUN yarn build && yarn install --production --ignore-scripts --prefer-offline --registry=https://registry.npm.taobao.org +RUN npm run build && npm install --production --ignore-scripts --prefer-offline --registry=https://registry.npm.taobao.org # Production image, copy all the files and run next FROM node:alpine AS runner diff --git a/next.config.mjs b/next.config.mjs index 912ea71..3d17082 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { // output: 'export', - distDir: 'dist', + // distDir: 'dist', async rewrites() { return [ {