fix(dockerfile): explicit port binding for Container App health probe

This commit is contained in:
gongzhiyong
2026-04-10 04:54:47 +08:00
parent f8a73e461c
commit df2b72c53c
+4 -5
View File
@@ -5,10 +5,8 @@ RUN npm install -g pnpm@10
WORKDIR /app
# Copy package files
# Copy package files and install dependencies
COPY package.json pnpm-lock.yaml ./
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy source code
@@ -17,5 +15,6 @@ COPY . .
# Expose LangGraph server port
EXPOSE 2024
# Start LangGraph server in production mode
CMD ["pnpm", "exec", "langgraphjs", "dev", "--host", "0.0.0.0", "--no-browser"]
# Use langgraphjs dev with explicit host binding
# The --host flag ensures it binds to 0.0.0.0 not just localhost
CMD ["pnpm", "exec", "langgraphjs", "dev", "--host", "0.0.0.0", "--port", "2024", "--no-browser"]