---
title: "Comment by Nemanja Mitic on \"How To: Deploy Next.js Apps with Docker Containers (Efficiently!)\" | Hashnode"
description: "What about the fact that Next.js needs database connection at container build time? https: //i.postimg. cc/pV7Sg2SF/image .png https: //i.postimg. cc/rp8ZSzDv/i"
url: "https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7/comment/61cf12aeb9f0453f6d321f6e"
---

[Discussion](https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7)

Comment [How To: Deploy Next.js Apps with Docker Containers (Efficiently!)](https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7)

[Nemanja Mitic](https://hashnode.com/@nemanjam)

[Dec 31, 2021](https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7/comment/61cf12aeb9f0453f6d321f6e)

What about the fact that Next.js needs database connection at container build time?

https: //i.postimg. cc/pV7Sg2SF/image .png

https: //i.postimg. cc/rp8ZSzDv/image .png
