Copy config in dockerfile
This commit is contained in:
parent
e9b2ccb6a8
commit
edddc9b24e
|
@ -23,12 +23,12 @@ RUN addgroup -g 1001 -S nodejs
|
||||||
RUN adduser -S nextjs -u 1001
|
RUN adduser -S nextjs -u 1001
|
||||||
|
|
||||||
# You only need to copy next.config.js if you are NOT using the default configuration
|
# You only need to copy next.config.js if you are NOT using the default configuration
|
||||||
# COPY --from=builder /app/next.config.js ./
|
COPY --from=builder /app/next.config.js ./
|
||||||
|
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
|
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
COPY --from=builder /app/package.json ./package.json
|
COPY --from=builder /app/package.json ./package.json
|
||||||
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
|
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'tailwindcss/tailwind.css';
|
||||||
import {DefaultSeo} from 'next-seo';
|
import {DefaultSeo} from 'next-seo';
|
||||||
import SEO from '../next-seo.config';
|
import SEO from '../next-seo.config';
|
||||||
import type {AppProps} from 'next/app';
|
import type {AppProps} from 'next/app';
|
||||||
import { appWithTranslation } from 'next-i18next';
|
import {appWithTranslation} from 'next-i18next';
|
||||||
|
|
||||||
function MyApp({Component, pageProps}: AppProps): JSX.Element {
|
function MyApp({Component, pageProps}: AppProps): JSX.Element {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue