rps-royale/apps/web/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

11 lines
302 B
Docker

FROM node:20-alpine
WORKDIR /app
RUN apk add --no-cache git
RUN npm install -g pnpm@9
COPY . .
RUN pnpm install --frozen-lockfile
RUN pnpm --filter @rps-royale/shared build
RUN pnpm --filter @rps-royale/web build
ENV NODE_ENV=production
EXPOSE 3000
CMD ["pnpm", "--filter", "@rps-royale/web", "start"]