# 前言
紀錄將 Next.js 專案 build 成 Docker image 的過程
# Dockerfile
# standalone config
在 next.config.mjs 檔案中,定義 {output: 'standalone'}
紀錄 docker swarm node 清理細節
# 問題點
某天發現 Swarm 當中的某一個 node 上面沒有 container,但理論上該有 1 個 container
使用 docker service update serviceName,發現有一個 container update 失敗,error message 為 service…