mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
* added pgvector image to docker builds, modified push to migrate to ameliorate vector data type issue * added zod and t3-ss/env-nextjs to minimal set of dependencies for db image * added healthcheck to docker services
28 lines
989 B
Docker
28 lines
989 B
Docker
# ========================================
|
|
# Dependencies Stage: Install Dependencies
|
|
# ========================================
|
|
FROM oven/bun:alpine AS deps
|
|
WORKDIR /app
|
|
|
|
# Copy only package files needed for migrations
|
|
COPY package.json bun.lock turbo.json ./
|
|
COPY apps/sim/package.json ./apps/sim/db/
|
|
|
|
# Install minimal dependencies in one layer
|
|
RUN bun install --omit dev --ignore-scripts && \
|
|
bun install --omit dev --ignore-scripts drizzle-kit drizzle-orm postgres next-runtime-env zod @t3-oss/env-nextjs
|
|
|
|
# ========================================
|
|
# Runner Stage: Production Environment
|
|
# ========================================
|
|
FROM oven/bun:alpine AS runner
|
|
WORKDIR /app
|
|
|
|
# Copy only the necessary files from deps
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY apps/sim/drizzle.config.ts ./apps/sim/drizzle.config.ts
|
|
COPY apps/sim/db ./apps/sim/db
|
|
COPY apps/sim/package.json ./apps/sim/package.json
|
|
COPY apps/sim/lib/env.ts ./apps/sim/lib/env.ts
|
|
|
|
WORKDIR /app/apps/sim |