Has anyone deployed a Dart Frog API?

Searching through the Discord, it doesn't look like anyone has posted about Dart Frog. I'd love to move my API from GCP to Railway and connect postgres and redis all together easily 🤤 The only problem is, you have to run a command (dart_frog build) and it generates your Dockerfile. Is there a way I can simply inject this command before deplying with a dockerfile? Thanks 🙏
5 Replies
Percy
Percy11mo ago
Project ID: N/A
Marcus Twichel
Marcus TwichelOP11mo ago
N/A
Brody
Brody11mo ago
disclaimer, i have never heard of dart frog before this thread. why not run dart_frog build locally, and then let railway build the image from the generated Dockerfile? (railway will use a Dockerfile if found in the root of your project) just read the deployment docs for dart frog, the dockerfile is output to a build folder, so you would need to set the root directory to /build in your service settings
Marcus Twichel
Marcus TwichelOP11mo ago
That’s not a bad idea, but I’d rather it happen in CI so I can’t forget to run the build command I started to explore custom config files - I’m going to see if that can work
Brody
Brody11mo ago
the dart frog docs also provide a dockerfile that can be placed at the root of your project, it seems like when you do that you don't need to run the build command before you deploy, as long as the platform to deploy to can utilise a dockerfile, and railway can
Want results from more Discord servers?
Add your server