chore: update Dockerfile to use Node.js 22 and improve health check

- Upgraded base and server images in Dockerfile from Node.js 20 to 22-alpine for better performance and security.
- Replaced wget with curl in the health check command for improved reliability.
- Enhanced README with detailed Docker deployment instructions, including configuration for API key and Claude CLI authentication, and examples for working with projects and GitHub CLI authentication.

This update ensures a more secure and efficient Docker setup for the application.
This commit is contained in:
Kacper
2025-12-28 20:53:35 +01:00
parent a526869f21
commit 0a21c11a35
3 changed files with 111 additions and 7 deletions

View File

@@ -96,15 +96,22 @@ async function getGhStatus(): Promise<GhStatus> {
// Check authentication status by actually making an API call
// gh auth status can return non-zero even when GH_TOKEN is valid
let apiCallSucceeded = false;
try {
const { stdout } = await execAsync('gh api user --jq ".login"', { env: execEnv });
const user = stdout.trim();
if (user) {
status.authenticated = true;
status.user = user;
apiCallSucceeded = true;
}
// If stdout is empty, fall through to gh auth status fallback
} catch {
// API call failed - try gh auth status as fallback
// API call failed - fall through to gh auth status fallback
}
// Fallback: try gh auth status if API call didn't succeed
if (!apiCallSucceeded) {
try {
const { stdout } = await execAsync('gh auth status', { env: execEnv });
status.authenticated = true;