-
Notifications
You must be signed in to change notification settings - Fork 3k
fix: Add curl in Space image and fix route used in HEALTHCHECK that was causing unhealthy status #8393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: preview
Are you sure you want to change the base?
fix: Add curl in Space image and fix route used in HEALTHCHECK that was causing unhealthy status #8393
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,6 +78,8 @@ RUN pnpm turbo run build --filter=space | |
|
|
||
| FROM base AS runner | ||
|
|
||
| RUN apk add --no-cache curl | ||
|
|
||
| COPY --from=installer /app/apps/space/build ./apps/space/build | ||
| COPY --from=installer /app/apps/space/node_modules ./apps/space/node_modules | ||
| COPY --from=installer /app/node_modules ./node_modules | ||
|
|
@@ -87,6 +89,6 @@ WORKDIR /app/apps/space | |
| EXPOSE 3000 | ||
|
|
||
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | ||
| CMD curl -fsS http://127.0.0.1:3000/ >/dev/null || exit 1 | ||
| CMD curl -fsS http://127.0.0.1:3000/spaces/ >/dev/null || exit 1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Hardcoded healthcheck path ignores configurable base pathThe healthcheck path |
||
|
|
||
| CMD ["npx", "react-router-serve", "./build/server/index.js"] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: makeplane/plane
Length of output: 4098
🏁 Script executed:
Repository: makeplane/plane
Length of output: 2549
Add
libc6-compatto the base stage for consistency with other production Dockerfiles.libc6-compatis missing from Dockerfile.space but present in all other production Dockerfiles (web, live). This is also already included in Dockerfile.dev (line 3). Add it to the base stage after line 8 (RUN corepack enable pnpm) to ensure consistency across the codebase and follow Alpine + Node.js best practices.🤖 Prompt for AI Agents