bug fixes and first try of github docker

This commit is contained in:
Stefan
2025-11-23 16:43:47 +01:00
parent 74016f08c6
commit 0aa4370f64
12 changed files with 695 additions and 350 deletions
+6
View File
@@ -9,6 +9,7 @@ WORKDIR /app
COPY package.json package-lock.json ./
# Install all dependencies (including dev dependencies needed for build)
ENV NODE_ENV=development
RUN npm ci
# Stage 2: Builder
@@ -34,6 +35,11 @@ WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
# Optional: OCI-Labels für GHCR
LABEL org.opencontainers.image.source="https://github.com/stefan-kp/chess_tutor"
LABEL org.opencontainers.image.title="Chess Tutor"
LABEL org.opencontainers.image.description="AI-based chess tutor using Stockfish and Gemini"
# Create non-root user for security
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs