Files
GMW/infra/docker/Dockerfile.backend
T
MythEclipseandClaude Opus 4.8 cd181698bc fix(docker): copy packages/shared workspace dependency into backend and discord-gateway containers
Both services import from @bete/shared but Dockerfiles were missing the
packages/shared/ copy step, causing tsc errors on build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 23:33:53 +07:00

33 lines
587 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 packages (workspace dependencies)
COPY packages/shared ./packages/shared
# Copy patches (pnpm patchedDependencies)
COPY patches ./patches
# Copy service
COPY services/backend ./services/backend
# Install dependencies
RUN pnpm install --frozen-lockfile
# Build backend
RUN pnpm --filter './services/backend' run build
# Expose port
EXPOSE 3001
# Start backend
CMD ["node", "services/backend/dist/index.js"]