---
title: "Complete Guide to Deploying Next.js Standalone with Bun and Docker"
url: https://daily.dev/posts/complete-guide-to-deploying-next-js-standalone-with-bun-and-docker-co8fzglyn
source_url: https://medium.com/@imamdev_/complete-guide-to-deploying-next-js-standalone-with-bun-and-docker-8d912b87c36b
type: article
source: "Community Picks"
published: 2023-10-02T02:20:52.917Z
updated: 2023-12-07T12:02:45.284Z
tags: ["docker", "cicd", "nextjs", "bun"]
reading_time: 2
upvotes: 16
comments: 3
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete Guide to Deploying Next.js Standalone with Bun and Docker

**[Community Picks](https://daily.dev/sources/community)** · 2 min read · 16 upvotes · 3 comments

## Summary

Guide to deploying Next.js standalone with Bun and Docker, including setting up Dockerfile and custom shell script, troubleshooting tips, and suggestions for optimization.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@imamdev_/complete-guide-to-deploying-next-js-standalone-with-bun-and-docker-8d912b87c36b>

## Community discussion

Top comments from developers on daily.dev.

**@imamdev\_** · 2 upvotes

> Let me know, what you think. This is my story solving problem deploying with docker and bun.

**@danielboll** · 1 upvotes

> Very nice post, currently the problem you have encountered in the official image have already been fixed, right? Thank you for sharing this

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#docker](https://daily.dev/tags/docker), [#cicd](https://daily.dev/tags/cicd), [#nextjs](https://daily.dev/tags/nextjs), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/complete-guide-to-deploying-next-js-standalone-with-bun-and-docker-co8fzglyn)
