Sam Ruby

Results 79 comments of Sam Ruby
trafficstars

Looks like tool versions not only have multiple versions, but also comments. The following should grab only the first version: ```ruby IO.read('.tool-versions').scan(/^(\w+)\s+(\d+\.\d+\.\d+)/).to_h ``` Then there is the question of precedence....

It looks like it is a general problem: ``` 8 failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: failed...

> I can use bun to build a nodejs output, and vice versa OK. But can we flip this around? Perhaps for svelte we should treat the adapter as authoritative?...

I have an analogous feature in dockerfile-rails: https://github.com/fly-apps/dockerfile-rails#advanced-customization (`--instructions), which would be relatively straightforward to port to this package. More precise feedback on where exactly the instructions would be placed...

That use case seems common enough that it shouldn't require additional instructions. See this from dockerfile-rails: https://github.com/fly-apps/dockerfile-rails/blob/b348b6962b928f64803ce0c3260c6eb98f5a8cb0/lib/generators/templates/_npm_install.erb#L3-L5 I assume that you have a .yarnrc? And what directories should be copied...

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...

despite the name, dockerfile-node supports bun. I haven't tried Deno yet.

Also related: `--instructions=path`, see [Advanced Customization](https://github.com/fly-apps/dockerfile-rails?tab=readme-ov-file#advanced-customization).