mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 23:26:41 +02:00
feat(games): add whopixels hosting at whopxl.mana.how
Dockerfile, docker-compose service (port 5100), Caddy and cloudflared routing for the WhoPixels game. PORT is now configurable via env var. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2eb280cc07
commit
d9ccb5e31b
59 changed files with 348 additions and 77 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
|
|
@ -30,7 +31,7 @@ COPY packages/shared-icons ./packages/shared-icons
|
|||
COPY services/llm-playground ./services/llm-playground
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
|
||||
# Build shared packages that need building
|
||||
WORKDIR /app/packages/shared-auth
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# ================================
|
||||
# Build Stage (Monorepo-aware)
|
||||
# ================================
|
||||
|
|
@ -10,7 +11,7 @@ FROM base AS deps
|
|||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
COPY services/mana-api-gateway/package.json ./services/mana-api-gateway/
|
||||
COPY packages/shared-nestjs-auth/package.json ./packages/shared-nestjs-auth/
|
||||
RUN pnpm install --frozen-lockfile --filter @manacore/api-gateway...
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --filter @manacore/api-gateway...
|
||||
|
||||
# Build the application
|
||||
FROM base AS builder
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
# Using node:20-slim instead of alpine for DuckDB glibc compatibility
|
||||
FROM node:20-slim AS builder
|
||||
|
|
@ -20,7 +21,7 @@ COPY packages/shared-storage ./packages/shared-storage
|
|||
COPY services/mana-core-auth ./services/mana-core-auth
|
||||
|
||||
# Install all dependencies (without ignore-scripts to build native modules like bcrypt)
|
||||
RUN pnpm install --no-frozen-lockfile --filter mana-core-auth... --filter @manacore/shared-storage
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile --filter mana-core-auth... --filter @manacore/shared-storage
|
||||
|
||||
# Build shared-storage first
|
||||
WORKDIR /app/packages/shared-storage
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY services/mana-crawler/package.json ./services/mana-crawler/
|
|||
COPY packages/shared-drizzle-config/package.json ./packages/shared-drizzle-config/
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
|
||||
# Copy source code
|
||||
COPY services/mana-crawler ./services/mana-crawler
|
||||
|
|
@ -42,7 +43,7 @@ COPY --from=builder /app/services/mana-crawler/package.json ./services/mana-craw
|
|||
COPY --from=builder /app/packages/shared-drizzle-config/package.json ./packages/shared-drizzle-config/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod
|
||||
|
||||
# Copy built files
|
||||
COPY --from=builder /app/services/mana-crawler/dist ./services/mana-crawler/dist
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# ================================
|
||||
# Build Stage
|
||||
# ================================
|
||||
|
|
@ -11,7 +12,7 @@ COPY packages/shared-drizzle-config ./packages/shared-drizzle-config
|
|||
COPY services/mana-media ./services/mana-media
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
|
||||
# Build the API
|
||||
WORKDIR /app/services/mana-media/apps/api
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM node:20-alpine AS base
|
||||
|
||||
# Install pnpm
|
||||
|
|
@ -13,7 +14,7 @@ COPY pnpm-workspace.yaml package.json pnpm-lock.yaml ./
|
|||
COPY services/mana-notify/package.json ./services/mana-notify/
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile --filter @manacore/mana-notify
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --filter @manacore/mana-notify
|
||||
|
||||
# Copy source code
|
||||
COPY services/mana-notify ./services/mana-notify
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# ================================
|
||||
# Build Stage (Monorepo-aware)
|
||||
# ================================
|
||||
|
|
@ -9,7 +10,7 @@ WORKDIR /app
|
|||
FROM base AS deps
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
COPY services/mana-search/package.json ./services/mana-search/
|
||||
RUN pnpm install --frozen-lockfile --filter @manacore/mana-search...
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --filter @manacore/mana-search...
|
||||
|
||||
# Build the application
|
||||
FROM base AS builder
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-calendar-bot ./services/matrix-calendar-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-calendar-bot/dist ./services/matrix-cal
|
|||
COPY --from=builder /app/services/matrix-calendar-bot/package.json ./services/matrix-calendar-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-clock-bot ./services/matrix-clock-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-clock-bot/dist ./services/matrix-clock-
|
|||
COPY --from=builder /app/services/matrix-clock-bot/package.json ./services/matrix-clock-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-mana-bot ./services/matrix-mana-bot
|
||||
|
||||
# Install all dependencies (--ignore-scripts to skip root postinstall hooks)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-mana-bot/dist ./services/matrix-mana-bo
|
|||
COPY --from=builder /app/services/matrix-mana-bot/package.json ./services/matrix-mana-bot/
|
||||
|
||||
# Install production dependencies only (--ignore-scripts to skip root postinstall hooks)
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-nutriphi-bot ./services/matrix-nutriphi-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-nutriphi-bot/dist ./services/matrix-nut
|
|||
COPY --from=builder /app/services/matrix-nutriphi-bot/package.json ./services/matrix-nutriphi-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-ollama-bot ./services/matrix-ollama-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-ollama-bot/dist ./services/matrix-ollam
|
|||
COPY --from=builder /app/services/matrix-ollama-bot/package.json ./services/matrix-ollama-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-onboarding-bot ./services/matrix-onboarding-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-onboarding-bot/dist ./services/matrix-o
|
|||
COPY --from=builder /app/services/matrix-onboarding-bot/package.json ./services/matrix-onboarding-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-planta-bot ./services/matrix-planta-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-planta-bot/dist ./services/matrix-plant
|
|||
COPY --from=builder /app/services/matrix-planta-bot/package.json ./services/matrix-planta-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-project-doc-bot ./services/matrix-project-doc-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-project-doc-bot/dist ./services/matrix-
|
|||
COPY --from=builder /app/services/matrix-project-doc-bot/package.json ./services/matrix-project-doc-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-stats-bot ./services/matrix-stats-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-stats-bot/dist ./services/matrix-stats-
|
|||
COPY --from=builder /app/services/matrix-stats-bot/package.json ./services/matrix-stats-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-stt-bot ./services/matrix-stt-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-stt-bot/dist ./services/matrix-stt-bot/
|
|||
COPY --from=builder /app/services/matrix-stt-bot/package.json ./services/matrix-stt-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-todo-bot ./services/matrix-todo-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-todo-bot/dist ./services/matrix-todo-bo
|
|||
COPY --from=builder /app/services/matrix-todo-bot/package.json ./services/matrix-todo-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-tts-bot ./services/matrix-tts-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-tts-bot/dist ./services/matrix-tts-bot/
|
|||
COPY --from=builder /app/services/matrix-tts-bot/package.json ./services/matrix-tts-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
# Build stage
|
||||
FROM node:20-slim AS builder
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common
|
|||
COPY services/matrix-zitare-bot ./services/matrix-zitare-bot
|
||||
|
||||
# Install all dependencies
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
RUN pnpm --filter @manacore/bot-services build
|
||||
|
|
@ -49,7 +50,7 @@ COPY --from=builder /app/services/matrix-zitare-bot/dist ./services/matrix-zitar
|
|||
COPY --from=builder /app/services/matrix-zitare-bot/package.json ./services/matrix-zitare-bot/
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue