migrate to monorepo?

This commit is contained in:
2025-12-13 20:20:48 -05:00
parent 7da6408d7a
commit a66b5b2362
29 changed files with 849 additions and 817 deletions

View File

@@ -4,18 +4,17 @@ FROM oven/bun:latest AS base
# Set the working directory
WORKDIR /app
# Copy package files
# Copy package files for monorepo
COPY package.json bun.lock* ./
# Install dependencies
RUN bun install --frozen-lockfile
# Copy source code
COPY src ./src
COPY tsconfig.json ./
# Copy monorepo packages
COPY packages ./packages
# Build the application for production
RUN bun build ./src/index.ts --outdir ./dist --minify --target=bun
RUN cd packages/scraper && bun build ./src/index.ts --target=bun --outdir=../../dist --minify
# Multi-stage build - runtime stage
FROM oven/bun:latest AS runtime