Open justserdar opened 1 month ago
Currently I wouldn't call this a Coolify
preset but rather a Nixpacks
preset, since it has more to do with the latter compared to Coolify.
In particular, because if someone during a Coolify deployment picks a different Build Pack
, this preset will be just useless or might become counterproductive in future versions.
To add onto this, since we are talking to a dedicated Nixpacks preset, we could create a dedicated nixpacks.toml
or nixpacks.json
configuration file solely for proper Nitro/Nuxt deployments. Coping into the final image only the required folders and files (eg: .output
).
While this is still not as optimized Dockerfile+Alpine images, it is still an improvement. With a downside that I still have no idea how to handle additional folders like content
from @nuxt/content
.
Thanks for your pull-request dear @justserdar and feedback @sandros94.
Few notes:
As we take this step by step, I feel the PR is currently at the point of: Preset:
Docs:
Would love feedback/input.
A Nitro Coolify preset to standardise and improve security when deploying to Coolify. Attached issue 2762.
โ Type of change
Docs and Preset for Coolify.
๐ Description
As discussed earlier over multiple channels with pi0 this is the right step moving forward. Requesting feedback, the preset now correctly adds the start script to the output
package.json
.๐ Checklist