Possibly missing steps on "Run any Dockerfile on Vercel" blog post
Closed
Hi, first of all thanks for finally supporting containers
Now while trying to check the support as described on https://vercel.com/blog/dockerfile-on-vercel post I ended up with a 404, and the deployment logs don't mention any container build taking place, maybe something is still missing from the overall approach?
Hi thanks for replying, naturally, hence why I linked the blog post as well as starting point,
Also as feedback for the documentation, it would be more interesting if it used more common languages used in container development like Java, Go, C#, not JavaScript examples.
Anyway, my approach was while following the blog post:
created a project with vercel add project
dumped the Go and Dockerfile.vercel examples from blog post into the directory
did a vercel deploy
build log suggests nothing has done regarding image creations, other than creating a domain
14:06:44.828 Running build in Washington, D.C., USA (East) – iad1
Production https://ngix-qkzn9szov-paulopinto-xxxxxxx-projects.vercel.app
▲ Aliased https://ngix.vercel.app
So clearly something is missing.
Hi,
finally got it working, the missing part from documentation is that project type has to be configured for Container.
Vercel build doesn't recognize the project automatically as a container project, even with the presence of Dockerfile.vercel, Container.vercel files.
I have sorted out by manually setting Framework presets to Container under Framework Settings.
Vercel Staff
Thanks for figuring out what was missing!
On a new project it would have automatically detected the Dockerfile.vercel and used the Container preset. I opened an internal ticket to get the docs updated with a note about changing the preset for cases where it can't be automatically set.
This topic is closed. It no longer accepts new replies.