# Toolchain CI CityGame — Java 21 (Maven) + Node 20 + pnpm
# Build : docker build -f ci/Dockerfile -t <registry>/citygame-ci:latest .
# Puis définir la propriété OneDev ciBuildImage sur cette image.
FROM maven:3.9-eclipse-temurin-21

RUN apt-get update -qq \
  && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends curl ca-certificates \
  && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
  && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends nodejs \
  && corepack enable \
  && corepack prepare pnpm@10.33.2 --activate \
  && apt-get purge -y curl \
  && apt-get autoremove -y -qq \
  && rm -rf /var/lib/apt/lists/*

ENV CI=true
WORKDIR /workspace
