dockerfile-node
dockerfile-node copied to clipboard
Better support for vite
See: https://community.fly.io/t/vite-not-found-on-ci-deploy-from-github/13064
Best solution is likely to install nginx and copy the build output to /usr/share/nginx/html.
As the Remix team is working on the transition to Vite (instead of ESBuild), it would be awesome if this could be supported 😍
I'd need to know a bit more as there are so many ways to use Vite. For example, if you look at the community.fly.io link from May you will see that node isn't needed at all during runtime for that example, but undoubtedly for Remix node is needed.
If npm run build produces static assets, and those assets are served using express or equivalent, there may not need to be any change at all to the Dockerfile.
undoubtedly for Remix node is needed
Remix also supports Cloudflare (obviously not in scope of this lib), Bun & Deno
despite the name, dockerfile-node supports bun. I haven't tried Deno yet.