Files
Michess/Dockerfile
Michess 7dac042d73 feat: Michess – Initiales Setup auf Basis von chessu
- Rebranding: chessu → Michess (Header, Footer, Metadata, Session-Cookie)
- Stockfish KI-Integration: 6 Schwierigkeitsgrade (Anfänger bis Meister)
- Admin-Panel: Nutzerverwaltung, Sperren/Entsperren, Git-Pull-Update
- Freundessystem: Anfragen, Freundesliste, Nutzersuche
- DB-Schema: role, banned, friend_request, friendship Tabellen
- Docker: NAS-optimiertes docker-compose.yml mit PostgreSQL Healthcheck
- Stockfish binary via apk im Alpine-Image installiert
- .env.example für einfaches Deployment
- scripts/update.sh für manuelles NAS-Update
- Brain.md + Plan.md als Projekt-Gedächtnis

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 10:02:52 +02:00

24 lines
466 B
Docker

FROM node:lts-alpine3.20
# Install stockfish and git
RUN apk update && apk add --no-cache stockfish git
ENV PNPM_HOME=/usr/local/bin
WORKDIR /opt/michess/
COPY . .
RUN corepack enable && \
corepack prepare pnpm@latest --activate && \
pnpm config set store-dir /opt/michess/.pnpm-store && \
pnpm install --frozen-lockfile
# Build both client and server
RUN pnpm build:server && pnpm build:client
EXPOSE 3000 3001
ENTRYPOINT ["pnpm"]
CMD ["start"]