rps-royale/apps/server/Dockerfile
Ubuntu 1d455147ad Fix Docker builds: pnpm workspaces, OpenSSL, and Next.js standalone
- Simplify Dockerfiles to use single-stage pnpm install
- Add openssl to server Alpine image for Prisma
- Remove obsolete version from docker-compose.yml
- Fix Dockerfile.node copy paths for monorepo root context
- Add .dockerignore at monorepo root
- Create empty public dir for Next.js standalone build

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 02:48:20 +00:00

12 lines
351 B
Docker

FROM node:20-alpine
WORKDIR /app
RUN apk add --no-cache git openssl
RUN npm install -g pnpm@9
COPY . .
RUN pnpm install --frozen-lockfile
RUN pnpm --filter @rps-royale/shared build
RUN pnpm --filter @rps-royale/server db:generate
RUN pnpm --filter @rps-royale/server build
ENV NODE_ENV=production
EXPOSE 3001
CMD ["node", "apps/server/dist/index.js"]