following your Docker setup by the letter ends in error #7027
Labels
help - confirm behaviour
Walk through the example/issue and confirm this is a general behaviour, or a correct update to make.
improve documentation
Enhance existing documentation (e.g. add an example, improve description)
📚 Subject area/topic
Docker setup
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/recipes/docker/
📋 Description of content that is out-of-date or incorrect
I don't know, it just throws an error.
Line 12 throws an error.
CMD node ./dist/server/entry.mjs
But from the look of it, it doesn't even make it to the full node_modules install.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
node:internal/modules/cjs/loader:1147
2024-02-24 15:29:40 throw err;
2024-02-24 15:29:40 ^
2024-02-24 15:29:40
2024-02-24 15:29:40 Error: Cannot find module '/app/dist/server/entry.mjs'
2024-02-24 15:29:40 at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
2024-02-24 15:29:40 at Module._load (node:internal/modules/cjs/loader:985:27)
2024-02-24 15:29:40 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
2024-02-24 15:29:40 at node:internal/main/run_main_module:28:49 {
2024-02-24 15:29:40 code: 'MODULE_NOT_FOUND',
2024-02-24 15:29:40 requireStack: []
2024-02-24 15:29:40 }
2024-02-24 15:29:40
2024-02-24 15:29:40 Node.js v20.11.1
Here's from the Inspect file in DockerDesktop.
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2024-02-24T21:29:40.61032129Z",
"FinishedAt": "2024-02-24T21:29:40.636170537Z"
},
The text was updated successfully, but these errors were encountered: