FROM node:24.10.0 AS base

RUN npm i -g bun

FROM base AS primary

WORKDIR /app

COPY package.json bun.lock turbo.json ./

COPY packages/db packages/db

RUN bun install

COPY scripts scripts

CMD ["/bin/sh", "/app/scripts/migrate.sh"]
