I'm going to deploy my project with a docker. but I'm not sure what folders to put in the docker. These are my folders;
.next
actions
api
components
constants
helpers
node_modules
pages
reducers
static
stores
.gitignore
next.config.js
package-lock.json
package.json
README.md
routes.js
server.js
Which of the above folders and files should I put into the docker? And how should I have a block of blocks in package.json? My script file is currently;
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
}
I'm currently doing a deployment with "npm run build && npm run start", but every page is recompiled, which seems to be a loss of performance.