From edddc9b24e63e0c1ffe2b73dcf228e3b7435806f Mon Sep 17 00:00:00 2001 From: Marvin Sextro Date: Fri, 2 Jul 2021 22:50:20 +0200 Subject: [PATCH] Copy config in dockerfile --- Dockerfile | 4 ++-- pages/_app.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62a077b..b218255 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,12 +23,12 @@ RUN addgroup -g 1001 -S nodejs RUN adduser -S nextjs -u 1001 # 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 --chown=nextjs:nodejs /app/.next ./.next COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./package.json -COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js USER nextjs diff --git a/pages/_app.tsx b/pages/_app.tsx index 0447a19..9afe073 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -3,7 +3,7 @@ import 'tailwindcss/tailwind.css'; import {DefaultSeo} from 'next-seo'; import SEO from '../next-seo.config'; import type {AppProps} from 'next/app'; -import { appWithTranslation } from 'next-i18next'; +import {appWithTranslation} from 'next-i18next'; function MyApp({Component, pageProps}: AppProps): JSX.Element { return (