fix(docker): use pnpm --filter to build each service in Dockerfiles

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>
This commit is contained in:
MythEclipse
2026-06-01 22:05:00 +07:00
co-authored by Claude Opus 4.6
parent 37ab92e7ea
commit e6668ffe51
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ COPY services/backend ./services/backend
RUN pnpm install --frozen-lockfile
# Build backend
RUN pnpm run build:server
RUN pnpm --filter './services/backend' run build
# Expose port
EXPOSE 3001
+1 -1
View File
@@ -20,7 +20,7 @@ COPY services/discord-gateway ./services/discord-gateway
RUN pnpm install --frozen-lockfile
# Build discord gateway
RUN pnpm run build
RUN pnpm --filter './services/discord-gateway' run build
# Create recordings directory
RUN mkdir -p /app/recordings
+1 -1
View File
@@ -20,7 +20,7 @@ COPY services/frontend ./services/frontend
RUN pnpm install --frozen-lockfile
# Build frontend
RUN pnpm run build:web
RUN pnpm --filter './services/frontend' run build
# Expose port (served by backend)
EXPOSE 3000