Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Build artifacts
.next/
node_modules/
out/
build/
dist/

# Local dev / workspace noise
docs/specs/
memory/
reports/
output/
skills/
*.log
.env*
!.env.example

# Git / CI
.git/
.github/
coverage/
*.tsbuildinfo
next.config.mjs.bak2
2 changes: 1 addition & 1 deletion .github/workflows/slsa-provenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd9f16464e31d5e78d1f2f7e7f4cbd
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 (repin: SHA anterior truncado a 39 chars, no resolvía)

- name: Log in to GHCR
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
Expand Down
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ FROM node:22-slim
# Install build dependencies for native modules (better-sqlite3)
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

# pnpm: el repo es pnpm-first (pnpm-lock.yaml + pnpm-workspace.yaml + CI con pnpm 9).
# El build anterior moría con "spawn pnpm ENOENT" al usar npm con scripts que invocan pnpm.
RUN npm install -g pnpm@9

WORKDIR /app

COPY package.json package-lock.json ./
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY scripts/ ./scripts/
RUN npm install
RUN pnpm install --frozen-lockfile

COPY . .
RUN npm run build
RUN pnpm build

ENV NODE_ENV=production
ENV HOSTNAME=0.0.0.0
Expand Down
Loading