Skip to content

Commit

Permalink
docs: Update README Dockerfile (#1143)
Browse files Browse the repository at this point in the history
* docs: Update README Dockerfile

Update some note according to this [issue](#1097)

* Add another section called Notes

Move the Docker deployment note to such section
  • Loading branch information
fangyibkk authored Apr 13, 2021
1 parent f300c4a commit d57164d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ export default appWithTranslation(MyApp, nextI18NextConfig)

All other [i18next options](https://www.i18next.com/overview/configuration-options) can be passed in as well.

## Notes
For Docker deployment, note that if you use the `Dockerfile` from [Next.js docs](https://nextjs.org/docs/deployment#docker-image) do not forget to copy `next.config.js` and `next-i18next.config.js` into the Docker image.
```
COPY --from=builder /app/next.config.js ./next.config.js
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
```

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
Expand Down

1 comment on commit d57164d

@vercel
Copy link

@vercel vercel bot commented on d57164d Apr 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.