mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
- Add inverse_of column support for question pair linking - Enhance admin questions page with bulk operations - Add DB migrations for inverse_of and FK indexes - Update pack generator docs for inverse linking - Improve Docker configs for admin app
36 lines
899 B
Docker
36 lines
899 B
Docker
FROM node:20-bookworm-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Enable pnpm via corepack (allow non-matching packageManager)
|
|
ENV COREPACK_ENABLE_STRICT=0
|
|
ENV PNPM_CONFIG_LINK_WORKSPACE_PACKAGES=true
|
|
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
|
|
|
# Copy root package files and workspace configs
|
|
COPY package*.json ./
|
|
COPY pnpm-workspace.yaml ./
|
|
COPY turbo.json ./
|
|
|
|
# Copy all workspace package.json files
|
|
COPY apps/admin/package.json ./apps/admin/
|
|
COPY apps/mobile/package.json ./apps/mobile/
|
|
COPY apps/supabase/package.json ./apps/supabase/
|
|
COPY apps/web/package.json ./apps/web/
|
|
COPY packages/shared/package.json ./packages/shared/
|
|
|
|
# Install all dependencies at root level (workspaces)
|
|
RUN pnpm install --no-frozen-lockfile
|
|
|
|
# Copy all source code
|
|
COPY . .
|
|
|
|
# Build shared package
|
|
RUN pnpm exec turbo run build --filter=@sauci/shared
|
|
|
|
WORKDIR /app/apps/admin
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["pnpm", "run", "dev"]
|