Root scripts point to old paths (src/, frontend/) that don't exist in the services/ monorepo layout. Use pnpm --filter to invoke each service's own build script (tsc) instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
574 B
Docker
30 lines
574 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Copy workspace files
|
|
COPY pnpm-workspace.yaml .
|
|
COPY pnpm-lock.yaml .
|
|
COPY package.json .
|
|
|
|
# Copy shared package
|
|
COPY packages/shared ./packages/shared
|
|
|
|
# Copy discord gateway service
|
|
COPY services/discord-gateway ./services/discord-gateway
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
# Build discord gateway
|
|
RUN pnpm --filter './services/discord-gateway' run build
|
|
|
|
# Create recordings directory
|
|
RUN mkdir -p /app/recordings
|
|
|
|
# Start discord gateway
|
|
CMD ["node", "dist/index.js"]
|