# ==============================================================================
# Development Container Dockerfile
# ==============================================================================
# This Dockerfile uses a minimal base image approach, relying on devcontainer
# features to install and configure all additional tooling. This keeps the
# Dockerfile simple and delegates toolchain installation to composable features
# defined in devcontainer.json.
#
# See devcontainer.json for the complete list of features and configuration.
#
# The dockerfile is best recommended for installation of tools that benefit
# from the caching of docker.
# ==============================================================================

FROM oci.forge.prosyon.ca/images/default:2026.1029.6

ENV PATH="$PATH:/opt/devcontainer-tools"

# Shared libraries headless Chrome needs at runtime. Puppeteer (pipeline/)
# downloads its own Chrome build, but that build still links against the
# host's copies of these; without them it fails with "error while loading
# shared libraries" (e.g. libnspr4.so) at test time.
RUN apt-get update && apt-get install -y --no-install-recommends \
    libasound2 \
    libatk-bridge2.0-0 \
    libatk1.0-0 \
    libatspi2.0-0 \
    libcups2 \
    libdbus-1-3 \
    libgbm1 \
    libnspr4 \
    libnss3 \
    libxcomposite1 \
    libxdamage1 \
    libxfixes3 \
    libxkbcommon0 \
    libxrandr2 \
    && rm -rf /var/lib/apt/lists/*
