This repository has been archived by the owner on May 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docker): pass
.env.local
to the final stage of docker image bui…
…lding ## problem - the app would not load because the `.env.local` file was not present - this is an issue because iron-session uses an ENV to encrypt session cookie content using a password - this password is loaded from `.env.local` file - if the ENV is not present, the rest of the app will not work ## solution - copy `.env.local` file from the building stage to the running stage of building docker image ## why - without the solution - iron-session will not work - iron-session in NextJS middleware will not work ## where - ./dockerfile ## usage
- Loading branch information