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:
Till JS 2026-03-20 19:57:50 +01:00
parent 2eb280cc07
commit d9ccb5e31b
59 changed files with 348 additions and 77 deletions

View file

@ -50,6 +50,7 @@ env:
ENV_FILE: .env.macmini
DEPLOY_NOTIFY_ROOM_ID: ${{ secrets.DEPLOY_NOTIFY_ROOM_ID }}
DEPLOY_NOTIFY_BOT_TOKEN: ${{ secrets.DEPLOY_NOTIFY_BOT_TOKEN }}
DOCKER_BUILDKIT: 1
PATH: /usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin
jobs:

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -28,7 +29,7 @@ COPY apps/calendar/packages ./apps/calendar/packages
COPY apps/calendar/apps/backend ./apps/calendar/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -53,7 +54,7 @@ COPY apps/calendar/packages ./apps/calendar/packages
COPY apps/calendar/apps/web ./apps/calendar/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -29,7 +30,7 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
COPY apps/chat/apps/backend ./apps/chat/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -46,7 +47,7 @@ COPY apps/chat/packages ./apps/chat/packages
COPY apps/chat/apps/web ./apps/chat/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -27,7 +28,7 @@ COPY apps/clock/packages ./apps/clock/packages
COPY apps/clock/apps/backend ./apps/clock/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -46,7 +47,7 @@ COPY apps/clock/packages ./apps/clock/packages
COPY apps/clock/apps/web ./apps/clock/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -26,7 +27,7 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
COPY apps/contacts/apps/backend ./apps/contacts/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -50,7 +51,7 @@ COPY packages/shared-stores ./packages/shared-stores
COPY apps/contacts/apps/web ./apps/contacts/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -48,7 +49,7 @@ COPY packages/wallpaper-generator ./packages/wallpaper-generator
COPY apps/manacore/apps/web ./apps/manacore/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -26,7 +27,7 @@ COPY packages/shared-nestjs-setup ./packages/shared-nestjs-setup
COPY apps/manadeck/apps/backend ./apps/manadeck/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -34,7 +35,7 @@ COPY packages/shared-utils ./packages/shared-utils
COPY apps/matrix/apps/web ./apps/matrix/apps/web
# Install dependencies (--no-frozen-lockfile due to workspace overrides)
RUN pnpm install --no-frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile
# Build shared packages that need building
WORKDIR /app/packages/shared-auth

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -28,7 +29,7 @@ COPY apps/mukke/packages ./apps/mukke/packages
COPY apps/mukke/apps/backend ./apps/mukke/apps/backend
# Install 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
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -49,7 +50,7 @@ COPY apps/mukke/packages ./apps/mukke/packages
COPY apps/mukke/apps/web ./apps/mukke/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -26,7 +27,7 @@ COPY apps/nutriphi/packages ./apps/nutriphi/packages
COPY apps/nutriphi/apps/backend ./apps/nutriphi/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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
WORKDIR /app/packages/shared-nestjs-auth

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -46,7 +47,7 @@ COPY apps/nutriphi/packages ./apps/nutriphi/packages
COPY apps/nutriphi/apps/web ./apps/nutriphi/apps/web
# 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

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -29,7 +30,7 @@ COPY apps/photos/packages/shared ./apps/photos/packages/shared
COPY apps/photos/apps/backend ./apps/photos/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -55,7 +56,7 @@ COPY apps/photos/packages/shared ./apps/photos/packages/shared
COPY apps/photos/apps/web ./apps/photos/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -28,7 +29,7 @@ COPY packages/shared-nestjs-setup ./packages/shared-nestjs-setup
COPY apps/picture/apps/backend ./apps/picture/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -0,0 +1,97 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
# Build arguments for SvelteKit static env vars
ARG PUBLIC_BACKEND_URL=http://picture-backend:3040
ARG PUBLIC_MANA_CORE_AUTH_URL=http://mana-core-auth:3001
# Set as environment variables for build
ENV PUBLIC_BACKEND_URL=$PUBLIC_BACKEND_URL
ENV PUBLIC_MANA_CORE_AUTH_URL=$PUBLIC_MANA_CORE_AUTH_URL
# Install pnpm
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
WORKDIR /app
# Copy root workspace files
COPY pnpm-workspace.yaml ./
COPY package.json ./
COPY pnpm-lock.yaml ./
# Copy shared packages needed by picture web
COPY packages/shared-types ./packages/shared-types
COPY packages/shared-auth ./packages/shared-auth
COPY packages/shared-auth-ui ./packages/shared-auth-ui
COPY packages/shared-branding ./packages/shared-branding
COPY packages/shared-feedback-service ./packages/shared-feedback-service
COPY packages/shared-feedback-types ./packages/shared-feedback-types
COPY packages/shared-feedback-ui ./packages/shared-feedback-ui
COPY packages/shared-i18n ./packages/shared-i18n
COPY packages/shared-icons ./packages/shared-icons
COPY packages/shared-tailwind ./packages/shared-tailwind
COPY packages/shared-theme ./packages/shared-theme
COPY packages/shared-theme-ui ./packages/shared-theme-ui
COPY packages/shared-subscription-types ./packages/shared-subscription-types
COPY packages/shared-subscription-ui ./packages/shared-subscription-ui
COPY packages/shared-profile-ui ./packages/shared-profile-ui
COPY packages/shared-ui ./packages/shared-ui
COPY packages/shared-utils ./packages/shared-utils
COPY packages/shared-vite-config ./packages/shared-vite-config
COPY packages/shared-api-client ./packages/shared-api-client
COPY packages/shared-stores ./packages/shared-stores
COPY packages/shared-pwa ./packages/shared-pwa
# Copy picture packages
COPY apps/picture/packages/shared ./apps/picture/packages/shared
COPY apps/picture/packages/design-tokens ./apps/picture/packages/design-tokens
# Copy picture web
COPY apps/picture/apps/web ./apps/picture/apps/web
# Install dependencies
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-vite-config
RUN pnpm build
WORKDIR /app/packages/shared-auth
RUN pnpm build || true
# Build the web app
WORKDIR /app/apps/picture/apps/web
RUN pnpm exec svelte-kit sync
RUN pnpm build
# Production stage
FROM node:20-alpine AS production
# Keep same directory structure as builder so pnpm symlinks resolve correctly
WORKDIR /app/apps/picture/apps/web
# Copy the pnpm store that symlinks point to (at /app/node_modules/.pnpm)
COPY --from=builder /app/node_modules/.pnpm /app/node_modules/.pnpm
# Copy the app's node_modules (contains symlinks to the pnpm store)
COPY --from=builder /app/apps/picture/apps/web/node_modules ./node_modules
# Copy built application
COPY --from=builder /app/apps/picture/apps/web/build ./build
COPY --from=builder /app/apps/picture/apps/web/package.json ./
# Expose port
EXPOSE 5021
# Set environment variables
ENV NODE_ENV=production
ENV PORT=5021
ENV HOST=0.0.0.0
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:5021/health || exit 1
# Run the app
CMD ["node", "build"]

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -28,7 +29,7 @@ COPY apps/planta/packages ./apps/planta/packages
COPY apps/planta/apps/backend ./apps/planta/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -27,7 +28,7 @@ COPY apps/presi/packages ./apps/presi/packages
COPY apps/presi/apps/backend ./apps/presi/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -45,7 +46,7 @@ COPY packages/shared-utils ./packages/shared-utils
COPY apps/presi/apps/web ./apps/presi/apps/web
# 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

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -26,7 +27,7 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
COPY apps/skilltree/apps/backend ./apps/skilltree/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -36,7 +37,7 @@ COPY packages/shared-api-client ./packages/shared-api-client
COPY apps/skilltree/apps/web ./apps/skilltree/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -26,7 +27,7 @@ COPY packages/shared-nestjs-setup ./packages/shared-nestjs-setup
COPY apps/storage/apps/backend ./apps/storage/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -48,7 +49,7 @@ COPY packages/shared-vite-config ./packages/shared-vite-config
COPY apps/storage/apps/web ./apps/storage/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -28,7 +29,7 @@ COPY apps/todo/packages ./apps/todo/packages
COPY apps/todo/apps/backend ./apps/todo/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -50,7 +51,7 @@ COPY apps/todo/packages ./apps/todo/packages
COPY apps/todo/apps/web ./apps/todo/apps/web
# 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-vite-config

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -29,7 +30,7 @@ COPY apps/zitare/packages/content ./apps/zitare/packages/content
COPY apps/zitare/apps/backend ./apps/zitare/apps/backend
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
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)
WORKDIR /app/packages/shared-errors

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Build stage
FROM node:20-alpine AS builder
@ -49,7 +50,7 @@ COPY apps/zitare/packages/content ./apps/zitare/packages/content
COPY apps/zitare/apps/web ./apps/zitare/apps/web
# 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-vite-config

View file

@ -76,6 +76,12 @@ ingress:
- hostname: mukke-api.mana.how
service: http://localhost:3010
# Picture App
- hostname: picture.mana.how
service: http://localhost:5021
- hostname: picture-api.mana.how
service: http://localhost:3040
# LLM Services
- hostname: playground.mana.how
service: http://localhost:5090
@ -86,6 +92,10 @@ ingress:
- hostname: tts-api.mana.how
service: http://localhost:3022
# Games
- hostname: whopxl.mana.how
service: http://localhost:5100
# Monitoring & Tools
- hostname: grafana.mana.how
service: http://localhost:8000

View file

@ -5,6 +5,7 @@
# 3000-3099: Core Services & Backends
# 4000-4099: Matrix Stack
# 5000-5099: Web Frontends
# 5100-5199: Games
# 6000-6099: Automation & Workflows
# 8000-8099: Monitoring Dashboards
# 9000-9199: Infrastructure & Exporters
@ -147,7 +148,7 @@ services:
TODO_BACKEND_URL: http://todo-backend:3031
CALENDAR_BACKEND_URL: http://calendar-backend:3032
CONTACTS_BACKEND_URL: http://contacts-backend:3034
PICTURE_BACKEND_URL: http://photos-backend:3039
PICTURE_BACKEND_URL: http://picture-backend:3040
PRESI_BACKEND_URL: http://presi-backend:3036
ZITARE_BACKEND_URL: http://zitare-backend:3007
PHOTOS_BACKEND_URL: http://photos-backend:3039
@ -1603,6 +1604,74 @@ services:
retries: 3
start_period: 40s
picture-backend:
build:
context: .
dockerfile: apps/picture/apps/backend/Dockerfile
image: picture-backend:local
container_name: mana-app-picture-backend
restart: always
depends_on:
mana-auth:
condition: service_healthy
minio:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 3040
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-mana123}@postgres:5432/picture
DB_HOST: postgres
DB_PORT: 5432
DB_USER: postgres
MANA_CORE_AUTH_URL: http://mana-auth:3001
REPLICATE_API_TOKEN: ${REPLICATE_API_TOKEN}
APP_ID: picture-app
MANA_CORE_SERVICE_KEY: ${MANA_CORE_SERVICE_KEY}
S3_ENDPOINT: http://minio:9000
S3_PUBLIC_ENDPOINT: https://minio.mana.how
S3_REGION: us-east-1
S3_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
S3_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
S3_BUCKET: picture-storage
CORS_ORIGINS: https://picture.mana.how,https://mana.how
ports:
- "3040:3040"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3040/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
picture-web:
build:
context: .
dockerfile: apps/picture/apps/web/Dockerfile
args:
PUBLIC_BACKEND_URL: http://picture-backend:3040
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
image: picture-web:local
container_name: mana-app-picture-web
restart: always
depends_on:
picture-backend:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 5021
PUBLIC_BACKEND_URL: http://picture-backend:3040
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
PUBLIC_BACKEND_URL_CLIENT: https://picture-api.mana.how
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.mana.how
ports:
- "5021:5021"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5021/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
mana-llm:
build:
context: ./services/mana-llm
@ -2008,6 +2077,30 @@ services:
redis:
condition: service_healthy
# ============================================
# Games
# ============================================
whopixels:
build:
context: .
dockerfile: games/whopixels/Dockerfile
container_name: mana-game-whopixels
restart: unless-stopped
environment:
PORT: 5100
AZURE_OPENAI_API_KEY: ${AZURE_OPENAI_API_KEY:-}
AZURE_OPENAI_ENDPOINT: ${AZURE_OPENAI_ENDPOINT:-}
AZURE_OPENAI_DEPLOYMENT: ${AZURE_OPENAI_DEPLOYMENT:-}
AZURE_OPENAI_API_VERSION: ${AZURE_OPENAI_API_VERSION:-}
ports:
- "5100:5100"
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:5100/"]
interval: 30s
timeout: 10s
retries: 3
volumes:
redis_data:
name: mana-redis-data

View file

@ -111,6 +111,13 @@ playground.mana.how {
reverse_proxy localhost:5090
}
# ============================================
# Games
# ============================================
whopxl.mana.how {
reverse_proxy localhost:5100
}
# ============================================
# Monitoring & Analytics
# ============================================

View file

@ -1,11 +1,10 @@
# Multi-stage Dockerfile for Astro landing pages # This is a template - copy and customize for each
landing page # ============================================ # Build Stage #
============================================ FROM node:20-alpine AS builder # Install pnpm RUN
corepack enable && corepack prepare pnpm@9.15.0 --activate WORKDIR /app # Copy workspace files COPY
pnpm-workspace.yaml ./ COPY package.json ./ COPY pnpm-lock.yaml ./ # Copy all shared packages COPY
packages/ ./packages/ # Copy the specific landing page ARG SERVICE_PATH COPY ${SERVICE_PATH} ./${
SERVICE_PATH
}
# syntax=docker/dockerfile:1 # Multi-stage Dockerfile for Astro landing pages # This is a template -
copy and customize for each landing page # ============================================ # Build
Stage # ============================================ FROM node:20-alpine AS builder # Install pnpm
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate WORKDIR /app # Copy workspace files
COPY pnpm-workspace.yaml ./ COPY package.json ./ COPY pnpm-lock.yaml ./ # Copy all shared packages
COPY packages/ ./packages/ # Copy the specific landing page ARG SERVICE_PATH COPY ${SERVICE_PATH}
./${SERVICE_PATH}
# Install all dependencies RUN pnpm install --frozen-lockfile # Build shared packages first RUN pnpm
run build:packages # Build the landing page WORKDIR /app/${SERVICE_PATH}
RUN pnpm build # ============================================ # Production Stage - Nginx # ============================================

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Multi-stage Dockerfile for NestJS backend services
# This is a template - copy and customize for each backend service
@ -26,7 +27,7 @@ ARG SERVICE_PATH
COPY ${SERVICE_PATH} ./${SERVICE_PATH}
# Install all dependencies (including devDependencies for build)
RUN pnpm install --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
# Build shared packages first
RUN pnpm run build:packages
@ -60,7 +61,7 @@ ARG SERVICE_PATH
COPY --from=builder /app/${SERVICE_PATH} ./${SERVICE_PATH}
# Install production dependencies only
RUN pnpm install --prod --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --prod --frozen-lockfile
# Create non-root user
RUN addgroup -g 1001 -S nodejs && \

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Multi-stage Dockerfile for SvelteKit web applications
# This is a template - copy and customize for each web app
@ -24,7 +25,7 @@ ARG SERVICE_PATH
COPY ${SERVICE_PATH} ./${SERVICE_PATH}
# 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 shared packages first
RUN pnpm run build:packages
@ -58,7 +59,7 @@ COPY --from=builder /app/${SERVICE_PATH}/build ./${SERVICE_PATH}/build
COPY --from=builder /app/${SERVICE_PATH}/package.json ./${SERVICE_PATH}/package.json
# Install production dependencies
RUN pnpm install --prod --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --prod --frozen-lockfile
# Create non-root user
RUN addgroup -g 1001 -S nodejs && \

View file

@ -0,0 +1,13 @@
FROM node:20-alpine
WORKDIR /app
COPY games/whopixels/package.json ./
RUN npm install --production
COPY games/whopixels/ ./
ENV PORT=5100
EXPOSE 5100
CMD ["node", "server.js"]

View file

@ -10,7 +10,7 @@ require('dotenv').config();
const { parse } = require('querystring');
// Konfiguration
const PORT = 3000;
const PORT = process.env.PORT || 3000;
// Azure OpenAI API Konfiguration aus Umgebungsvariablen
const AZURE_OPENAI_API_KEY = process.env.AZURE_OPENAI_API_KEY;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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