Looking to deploy a react vite frontend with a Dockerfile, seem to get error and no logs
Hey, it seems like this should be a fairly simple task to perform, but I'm looking for help. Here's my
Dockerfile
The result I get is: Application failed to respond
Any help would be great thanksSolution:Jump to solution
you can do this easy enough with nixpacks.
https://github.com/brody192/vite-react-template
delete your Dockerfile, then copy the nixpacks.toml and Caddyfile into your project....
7 Replies
Project ID:
7efe54ff-c124-413a-a5d4-87a4ea16ec67
7efe54ff-c124-413a-a5d4-87a4ea16ec67
Solution
you can do this easy enough with nixpacks.
https://github.com/brody192/vite-react-template
delete your Dockerfile, then copy the nixpacks.toml and Caddyfile into your project.
if you have a start command set in your railway service settings, remove it
hey, thanks for the reponse. preference is to not use Caddy. is there a way accomplish this with a Dockerfile?
yes of course this can be done with a dockerfile. but may I ask why you'd rather use a node based server instead of a server like caddy?
i don't like the name, never heard of it before, and most people use docker
caddy is a production ready web server, like nginx but better
https://caddyserver.com/