mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-08-28 02:44:59 +00:00
Fix Docker source builds
Fix Docker build context and pnpm setup for source builds. Closes #725.
This commit is contained in:
parent
8d7d0b7fc2
commit
044e0c0ba3
6 changed files with 15 additions and 16 deletions
|
|
@ -45,9 +45,6 @@ LICENSE
|
|||
coverage
|
||||
|
||||
# Development tools
|
||||
cli/
|
||||
mcp/
|
||||
scripts/
|
||||
tasks/
|
||||
eslint.config.js
|
||||
.prettierrc
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
# ---------------------------------------------------------------------------
|
||||
FROM node:22-alpine AS deps
|
||||
|
||||
RUN corepack enable && corepack prepare pnpm@9.15.4 --activate
|
||||
RUN corepack enable && corepack prepare pnpm@11.1.1 --activate
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
@ -27,8 +27,10 @@ COPY server/package.json ./server/
|
|||
COPY web/package.json ./web/
|
||||
COPY cli/package.json ./cli/
|
||||
COPY mcp/package.json ./mcp/
|
||||
COPY scripts/ ./scripts/
|
||||
|
||||
# Install all dependencies (dev + prod) for building
|
||||
ENV HUSKY=0
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
@ -65,7 +67,7 @@ RUN pnpm --filter @veritas-kanban/server build
|
|||
# ---------------------------------------------------------------------------
|
||||
FROM node:22-alpine AS production
|
||||
|
||||
RUN corepack enable && corepack prepare pnpm@9.15.4 --activate
|
||||
RUN corepack enable && corepack prepare pnpm@11.1.1 --activate
|
||||
|
||||
# Security: run as non-root
|
||||
RUN addgroup -g 1001 -S nodejs && \
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ Tasks are markdown files. Settings are JSON. Workflows are YAML. No database, no
|
|||
| **Git** | simple-git, worktree management | — |
|
||||
| **Testing** | Playwright (E2E), Vitest (unit) | Playwright 1.58, Vitest 4 |
|
||||
| **Runtime** | Node.js | 22+ |
|
||||
| **Package Manager** | pnpm | 9+ |
|
||||
| **Package Manager** | pnpm | 11.1.1+ |
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -226,13 +226,13 @@ If you need to debug inside a container, use `docker exec` to inspect — don't
|
|||
| Requirement | Version |
|
||||
| ----------- | ------- |
|
||||
| Node.js | 22.0.0+ |
|
||||
| pnpm | 9.0.0+ |
|
||||
| pnpm | 11.1.1+ |
|
||||
|
||||
Install pnpm if not present:
|
||||
|
||||
```bash
|
||||
corepack enable
|
||||
corepack prepare pnpm@9.15.4 --activate
|
||||
corepack prepare pnpm@11.1.1 --activate
|
||||
```
|
||||
|
||||
### Build Steps
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@ A working board is not the same as agent-ready or external wake/delivery-ready.
|
|||
|
||||
## Prerequisites (30 seconds)
|
||||
|
||||
| What | Command | Notes |
|
||||
| ----------------- | ------------------ | -------------------------------------------------- |
|
||||
| Node.js | `node -v` | Requires **22+**. Install via Volta/nvm if older. |
|
||||
| pnpm | `pnpm -v` | Requires **9+**. `npm install -g pnpm` if missing. |
|
||||
| Git | `git --version` | Any current version works. |
|
||||
| (Optional) Docker | `docker --version` | Needed only if you prefer containers. |
|
||||
| What | Command | Notes |
|
||||
| ----------------- | ------------------ | ----------------------------------------------------------------------- |
|
||||
| Node.js | `node -v` | Requires **22+**. Install via Volta/nvm if older. |
|
||||
| pnpm | `pnpm -v` | Requires **11.1.1+**. Prefer `corepack prepare pnpm@11.1.1 --activate`. |
|
||||
| Git | `git --version` | Any current version works. |
|
||||
| (Optional) Docker | `docker --version` | Needed only if you prefer containers. |
|
||||
|
||||
That's it. No database, no extra services.
|
||||
|
||||
|
|
|
|||
|
|
@ -33,14 +33,14 @@ This guide walks you through every self-hosting scenario — from running locall
|
|||
| Requirement | Version | Install |
|
||||
| ----------- | ------- | ------------------------------------------------------------ |
|
||||
| Node.js | 22.0.0+ | https://nodejs.org or `nvm install 22` |
|
||||
| pnpm | 9.0.0+ | `corepack enable && corepack prepare pnpm@9.15.4 --activate` |
|
||||
| pnpm | 11.1.1+ | `corepack enable && corepack prepare pnpm@11.1.1 --activate` |
|
||||
| Git | any | https://git-scm.com |
|
||||
|
||||
Verify:
|
||||
|
||||
```bash
|
||||
node --version # v22.x.x
|
||||
pnpm --version # 9.x.x
|
||||
pnpm --version # 11.x.x
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue