# Vercel 支持用 Dockerfile 部署容器

Source: https://www.zaihua.news/article/42284/

[返回新闻流](https://www.zaihua.news/)
2026年7月1日 · 11:58 · [在花新闻](https://www.zaihua.news/about/)

# Vercel 支持用 Dockerfile 部署容器

Vercel 支持通过 Dockerfile.vercel 部署容器：项目加入该文件后，平台会构建、存储、部署镜像，并在 Fluid compute 上自动伸缩。服务只需监听 [$PORT](https://www.zaihua.news/article/42284/#)（默认 80）并提供 HTTP，Go、Rails、Spring Boot、FastAPI 或 nginx 后端等可运行。

每次 git push 会重建镜像并生成预览 URL，也可用 vercel 命令直接部署。容器按代码实际运行的 CPU 计费，空闲时收缩；日志、追踪和指标在同一仪表盘。镜像以优化启动镜像保存，启动时按需流式解压，状态放在数据库或缓存等外部服务中。

[Vercel](https://vercel.com/blog/dockerfile-on-vercel)

🌸 [在花频道](http://t.me/ZaiHuaPd) · [茶馆水群](https://t.me/zaihuachat) · [投稿通道](http://t.me/ZaiHuabot)

https://cdn.zaihua.news/main/42284/AQAD_AtrG9eRKUZ-.jpg

[上一条2026 上半年中国内地电影票房较 2025 年同期的缩水超过 40%](https://www.zaihua.news/article/42283/)[下一条 Anthropic 回应 Claude Code 暗藏代码检测中国用户 将在明天发布的新版本中删除代码](https://www.zaihua.news/article/42285/)
