codekanban 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/Dockerfile +79 -0
  2. package/README.md +1 -0
  3. package/package.json +6 -6
package/Dockerfile ADDED
@@ -0,0 +1,79 @@
1
+ # Build stage for frontend
2
+ FROM node:22.12-alpine AS frontend-builder
3
+
4
+ WORKDIR /app/ui
5
+
6
+ # Install pnpm using npm
7
+ RUN npm install -g pnpm@latest
8
+
9
+ # Copy frontend package files
10
+ COPY ui/package.json ui/pnpm-lock.yaml ./
11
+
12
+ # Install dependencies
13
+ RUN pnpm install --frozen-lockfile
14
+
15
+ # Copy frontend source code
16
+ COPY ui/ ./
17
+
18
+ # Build frontend
19
+ RUN pnpm build
20
+
21
+ # Build stage for backend
22
+ FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS backend-builder
23
+
24
+ WORKDIR /app
25
+
26
+ # Install build dependencies
27
+ RUN apk add --no-cache git gcc musl-dev sqlite-dev
28
+
29
+ # Copy go mod files
30
+ COPY go.mod go.sum ./
31
+
32
+ # Download dependencies
33
+ RUN go mod download
34
+
35
+ # Copy source code
36
+ COPY . .
37
+
38
+ # Copy built frontend assets
39
+ COPY --from=frontend-builder /app/ui/dist ./static
40
+
41
+ # Build backend with cross-compilation
42
+ # Use build platform (amd64) to compile for target platform (amd64/arm64)
43
+ ARG TARGETARCH
44
+ ARG TARGETOS
45
+ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
46
+ -ldflags="-s -w" \
47
+ -tags "sqlite_omit_load_extension" \
48
+ -trimpath \
49
+ -o CodeKanban
50
+
51
+ # Final stage
52
+ FROM alpine:latest
53
+
54
+ # Install runtime dependencies
55
+ RUN apk add --no-cache \
56
+ ca-certificates \
57
+ tzdata \
58
+ sqlite-libs
59
+
60
+ WORKDIR /app
61
+
62
+ # Copy binary from builder
63
+ COPY --from=backend-builder /app/CodeKanban .
64
+
65
+ # Create data directory
66
+ RUN mkdir -p /app/data
67
+
68
+ # Expose default port
69
+ EXPOSE 3007
70
+
71
+ # Set environment variables
72
+ ENV GIN_MODE=release
73
+
74
+ # Health check
75
+ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
76
+ CMD wget --no-verbose --tries=1 --spider http://localhost:3007/api/v1/health || exit 1
77
+
78
+ # Run the application
79
+ CMD ["./CodeKanban"]
package/README.md CHANGED
@@ -25,6 +25,7 @@ Try it instantly:
25
25
  npx codekanban
26
26
  # or
27
27
  npm install -g codekanban
28
+ codekanban
28
29
  ```
29
30
 
30
31
  ## Core Features
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "codekanban",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "An auxiliary programming tool for the AI era, helping you speed up 10x.",
5
5
  "bin": {
6
6
  "codekanban": "npm-bin/codekanban.js"
7
7
  },
8
8
  "optionalDependencies": {
9
- "@codekanban/win32-x64": "0.7.1",
10
- "@codekanban/darwin-x64": "0.7.1",
11
- "@codekanban/darwin-arm64": "0.7.1",
12
- "@codekanban/linux-x64": "0.7.1",
13
- "@codekanban/linux-arm64": "0.7.1"
9
+ "@codekanban/win32-x64": "0.8.0",
10
+ "@codekanban/darwin-x64": "0.8.0",
11
+ "@codekanban/darwin-arm64": "0.8.0",
12
+ "@codekanban/linux-x64": "0.8.0",
13
+ "@codekanban/linux-arm64": "0.8.0"
14
14
  },
15
15
  "keywords": [
16
16
  "ai",