How to Deploy simple elixir app (not phoenix)

I have a small app which has only one application.ex and supervisor.

external dependency (ex_gram,) .

That’s it. No phoenix.

I did fly launch it detected heroku buildpack. and then threw following error.

 failed to fetch builder image 'index.docker.io/heroku/buildpacks:20': resolve auth for ref index.docker.io/heroku/buildpacks:20: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

What am I missing?

My first answer is “don’t use the buildpack for an Elixir app, a small Dockerfile will work better”.

But that error is weird, too. Do you have Docker running locally? It’s saying it can’t pull a buildpack.

on running

➜ ps aux | grep docker

I get

abhishektripathi  3272   0.0  0.0  4268176    540 s002  R+   11:03PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox docker

So, docker is not running locally.

I did not try to use buildpack. fly detected it automatically. What can I do?
See screenshot :

on a sidenote :

grep: aliased to grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}

Having this error today on Nodejs app as well.

Error failed to fetch an image or build from source: failed to fetch builder image 'index.docker.io/heroku/buildpacks:20': resolve auth for ref index.docker.io/heroku/buildpacks:20: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

This solved the problem. Seems to be mac specific issue, not related with fly.