This commit is contained in:
hailin 2025-07-28 22:42:04 +08:00
parent 4d571832a8
commit 6970290e7c
1 changed files with 5 additions and 1 deletions

View File

@ -34,5 +34,9 @@ RUN npm install -g serve
# 暴露端口
EXPOSE 8091
# tell Nitro to listen on 0.0.0.0:8091
ENV HOST=0.0.0.0
ENV PORT=8091
# 启动 Nuxt SSR 服务
CMD ["node", ".output/server/index.mjs", "--port", "8091"]
CMD ["node", ".output/server/index.mjs"]