Files
hammer-queue/backend/Dockerfile
Hammer 8407dde30b
All checks were successful
CI/CD / test (push) Successful in 19s
CI/CD / deploy (push) Successful in 1s
fix: comprehensive init-tables.sql for all new tables (todos, security_audits, daily_summaries, task_comments)
2026-01-30 05:06:52 +00:00

16 lines
613 B
Docker

FROM oven/bun:1 AS base
WORKDIR /app
# Install dependencies
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile 2>/dev/null || bun install
# Copy source
COPY . .
# Generate migrations and run
EXPOSE 3100
RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*
COPY init-tables.sql /app/init-tables.sql
CMD ["sh", "-c", "echo 'Running init SQL...' && psql \"$DATABASE_URL\" -f /app/init-tables.sql 2>&1 && echo 'Init SQL done' && echo 'Running db:push...' && yes | bun run db:push 2>&1; echo 'db:push exit code:' $? && echo 'Starting server...' && bun run start"]