- 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>
24 lines
466 B
Docker
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"]
|