Refactor Dockerfile for multi-stage build and update start script in package.json
- Introduced a multi-stage build in the Dockerfile to separate build and runtime environments. - Added environment variables for production in the runtime stage. - Updated the start script in package.json to point to the new server entry point.
This commit is contained in:
parent
733a1e9f47
commit
267e279cf2
2 changed files with 17 additions and 6 deletions
|
|
@ -7,7 +7,8 @@
|
|||
"dev": "nuxt dev",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare"
|
||||
"postinstall": "nuxt prepare",
|
||||
"start": "node .output/server/index.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"mongodb": "^6.18.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue