mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
* fix(migrations): downgrade nextjs
* fix(bun): pin bun version in db migrations
* Revert "fix(migrations): downgrade nextjs"
This reverts commit 27b544f22d.
28 lines
1003 B
Docker
28 lines
1003 B
Docker
# ========================================
|
|
# Dependencies Stage: Install Dependencies
|
|
# ========================================
|
|
FROM oven/bun:1.2.21-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:1.2.21-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 |