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
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ pids
*-backup.*
*-old.*

# Test files and development scripts
src/__tests__/
# Development scripts
scripts/test-*.js
*.test.ts
*.test.js

# Local configuration
.claude/
Expand Down
484 changes: 484 additions & 0 deletions COMPETITIVE_LANDSCAPE_2025_2026.md

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
# ── Build stage ──────────────────────────────
FROM node:22.15-alpine3.21 AS builder
RUN apk add --no-cache python3 make g++
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build

# ── Production stage ─────────────────────────
FROM node:22.15-alpine3.21
# ── Production deps stage ────────────────────
FROM node:22.15-alpine3.21 AS deps
RUN apk add --no-cache python3 make g++
WORKDIR /app
COPY package*.json ./
RUN npm ci --production

# ── Production stage ─────────────────────────
FROM node:22.15-alpine3.21
WORKDIR /app
COPY --from=deps /app/node_modules/ ./node_modules/
COPY --from=builder /app/dist/ ./dist/
COPY package*.json ./

RUN addgroup -S appgroup && adduser -S appuser -G appgroup
RUN mkdir -p /app/data && chown -R appuser:appgroup /app/data
USER appuser

EXPOSE 3000

HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- http://localhost:3000/api/health || exit 1

CMD ["node", "dist/index.js"]
Loading
Loading