diff --git a/php_pc/Dockerfile b/php_pc/Dockerfile index 6a40bca..d2b4ce8 100644 --- a/php_pc/Dockerfile +++ b/php_pc/Dockerfile @@ -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"]