fly-apps / dockerfile-node

Dockerfile generator for Node.js
126 stars 5 forks source link

bunx dockerfile not working #53

Closed ianwalter closed 1 month ago

ianwalter commented 2 months ago

When I run

bunx dockerfile

I get

error: could not determine executable to run for package dockerfile

Running Bun 1.0.15.

rubys commented 2 months ago

Try:

bunx @flydotio/dockerfile

Or:

bun add -d @flydotio/dockerfile
bunx dockerfile
ianwalter commented 2 months ago

Oh ok, thanks, so

bunx @flydotio/dockerfile

worked but it created a Dockerfile for a Node.js app that uses npm. I assumed it would know to create a Bun Dockerfile if I used bunx.

ianwalter commented 2 months ago

Ah, maybe because it's a Next.js app it got overridden. I guess I'll just try to copy over a Bun Dockerfile example instead.