Some checks failed
CI/CD / test (push) Has been cancelled
CI/CD / deploy (push) Has been cancelled
Security Scan / SAST - Semgrep (push) Has been cancelled
Security Scan / Dependency Scan - Trivy (push) Has been cancelled
Security Scan / Secret Detection - Gitleaks (push) Has been cancelled
- Created seed-all-security.ts: single script combining OWASP audits, category audits, checklist items (150+), and score history - Each step has individual error handling (won't fail silently) - Batch inserts with fallback to individual inserts - Updated Dockerfile CMD to use consolidated seed script - Cache buster v6 for forced rebuild
17 lines
838 B
Docker
17 lines
838 B
Docker
FROM oven/bun:1 AS base
|
|
WORKDIR /app
|
|
|
|
# Install postgresql-client for SQL fallback
|
|
RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install dependencies
|
|
COPY package.json bun.lock* ./
|
|
RUN bun install --frozen-lockfile 2>/dev/null || bun install
|
|
|
|
# Copy source and init script
|
|
COPY . .
|
|
|
|
# Cache buster: 2026-01-30-v6-security-robust
|
|
EXPOSE 3100
|
|
CMD ["sh", "-c", "echo 'Waiting for DB...' && sleep 5 && echo 'Running init SQL...' && psql \"$DATABASE_URL\" -f /app/init-tables.sql 2>&1 || echo 'Init SQL had issues (continuing)' && echo 'Running db:push...' && yes | bun run db:push 2>&1 || echo 'db:push had issues (continuing)' && echo 'Seeding all security data...' && bun run src/seed-all-security.ts 2>&1 || echo 'Seed had issues (continuing)' && echo 'Starting server...' && bun run start"]
|