FROM oven/bun:latest
WORKDIR /app
COPY package.json bun.lock* ./
RUN bun install --production
COPY . .
RUN bun run build
EXPOSE 3000
VOLUME /data
ENV KGRAPH_DATA_DIR=/data
CMD ["bun", "run", "src/index.ts", "serve"]
