FROM oven/bun:1.3.5-alpine

WORKDIR /app

COPY package.json tsconfig.json ./
COPY src ./src
COPY scripts ./scripts

RUN mkdir -p /app/data

ENV PORT=3010
ENV DB_PATH=/app/data/mock-task-manager.sqlite

EXPOSE 3010

CMD ["bun", "src/index.ts"]
