migrate to monorepo?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user