standalone?
This commit is contained in:
parent
2307740347
commit
a11ea38c88
@ -9,7 +9,7 @@ COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
COPY ./src/app/favicon.ico ./public/favicon.ico
|
||||
# COPY ./src/app/favicon.ico ./public/favicon.ico
|
||||
|
||||
RUN yarn build
|
||||
|
||||
@ -17,8 +17,13 @@ FROM node:18-alpine AS runner
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --gid 1001 nextjs
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
||||
USER nextjs
|
||||
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
|
@ -8,7 +8,9 @@ const nextConfig = {
|
||||
pathname: '/1BCeG1aTiBAAAAAd/temptation-stairway-ena.gif'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
output: 'standalone',
|
||||
productionBrowserSourceMaps: false
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
Loading…
x
Reference in New Issue
Block a user