Vercel launches native support for Dockerfiles on its serverless platform
Now you can deploy any HTTP container on Vercel without managing clusters, registries, or daemons, paying only for CPU used.
July 2, 2026 · 4 min read

TL;DR: Vercel has added native support for Dockerfiles, allowing any containerized HTTP server (Go, Rails, Java, etc.) to run on its serverless infrastructure, with auto-scaling, per-commit previews, and pay-per-CPU billing. This unifies frontend and backend on a single platform.
What happened?
On February 11, 2025, Vercel announced on its official blog support for Dockerfiles on its serverless platform, allowing developers to include a Dockerfile.vercel (or Containerfile.vercel) in their projects. Vercel builds, stores, and deploys the image on its Fluid compute system, launched in October 2024 (according to Vercel's blog). The server must listen on port $PORT (default 80) and speak HTTP. The platform handles auto-scaling, logs, preview deployments, and routing, without needing to manage a container registry, a local Docker daemon, or a cluster. This move follows the trend of platforms like Fly.io and Railway, which already offered container deployment, but Vercel integrates it with its frontend and serverless functions ecosystem.
Why is it important?
Historically, Vercel focused on static frontends and lightweight serverless functions (Vercel Functions), with limited support to JavaScript/TypeScript. With Dockerfiles, Vercel directly competes with Fly.io, Railway, or Google Cloud Run, offering a unified experience for full-stack applications (frontend + containerized backend). Integration with Vercel's workflow (previews per commit, instant deployments) reduces friction for teams already using the platform. Additionally, the use of optimized boot images —compressed disk snapshots streamed on demand— enables fast cold starts even with large images, a typical problem in serverless environments. According to Vercel's blog, these optimized images allow the server to start handling requests before the full image is downloaded, improving startup latency. This is key for applications like video processing with FFmpeg or headless browsers like Chromium, which require system libraries.
Impact and consequences
For developers, this means they can bring existing applications written in any language (Go, Ruby, Python, Java, PHP, etc.) to Vercel without rewriting them as serverless functions. Companies using Vercel for their frontend can now also consolidate the backend on the same platform, simplifying infrastructure. Billing only for CPU used (Fluid compute) is attractive for intermittent workloads, like APIs with variable traffic. However, there are limitations: containers are stateless (no local persistent state), so an external database or cache is needed. Vercel promises attached durable storage soon, according to the blog. Additionally, Dockerfile support does not replace automatic framework detection, but complements it for cases where the framework is not recognized or system libraries are required. Compared to Google Cloud Run, which offers a 99.95% SLA and persistent storage (Cloud Filestore), Vercel still lacks these guarantees, but its integration with the frontend ecosystem is tighter. For startups, this reduces the need for specialized DevOps, as Vercel handles scaling and infrastructure.
What should readers know?
- Technical requirements: The server must listen on
$PORTand speak HTTP. Any stack that meets this works (Rails, Spring Boot, Express, Laravel, ASP.NET, FastAPI, nginx, etc.). According to the documentation, even Java and PHP are supported. - Deployment process: Simply add a
Dockerfile.vercelin the project root and runvercelor dogit push. Vercel builds the image, stores it in its Container Registry (Vercel Container Registry), and deploys it. Each push generates a preview URL. - Performance: Images are converted to optimized boot images for fast cold starts. Once active, Fluid compute keeps instances warm and scales to zero when idle, enabling pay-per-CPU billing.
- Pricing: You only pay for CPU time used, with no cost for idle instances. It's ideal for APIs with variable traffic. There is no additional cost for the container registry.
- Limitations: No local persistent state; an external service is required for durable data (e.g., Vercel KV, external database). Support for attached storage is in development. Additionally, there is no explicit SLA guarantee for containers.
“A container on Vercel is a first-class citizen. It runs on the same platform and the same compute as your frontend and the rest of your services on Vercel.” — Vercel Blog
In summary, Vercel democratizes container deployment by removing operational complexity while maintaining the serverless experience. For startups and small teams, it's a powerful alternative to heavier solutions like Kubernetes, albeit with trade-offs in persistence and SLA. Adoption of OCI (Open Container Initiative) standards ensures portability, and integration with Vercel's workflow (previews, instant deployments) makes it an attractive option for teams already using the platform. However, for applications with strict state or high availability requirements, it may be necessary to combine Vercel with external services.