# Cloakserve image — wraps the upstream cloakhq/cloakbrowser image and # starts the `cloakserve` CDP multiplexer on container start. Pair # with @suaveplan/testing-e2e's `connectCloakServe` helper. # # Build: docker build -f Dockerfile.cloakserve -t suaveplan-cloakserve . # Default upstream tag: latest. Pin via --build-arg CLOAKBROWSER_TAG=0.3.28. ARG CLOAKBROWSER_TAG=latest FROM cloakhq/cloakbrowser:${CLOAKBROWSER_TAG} # Bundle the canvas-emoji + extended font set the upstream README # flags as required for Kasada / Akamai (`Font Setup on Linux`). # The base image already has noto-color-emoji; we add the rest for # completeness on minimal derivatives. USER root RUN apt-get update \ && apt-get install -y --no-install-recommends \ fonts-freefont-ttf \ fonts-unifont \ fonts-ipafont-gothic \ fonts-wqy-zenhei \ fonts-tlwg-loma-otf \ && rm -rf /var/lib/apt/lists/* \ && fc-cache -f EXPOSE 9222 HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ CMD curl -fsS http://localhost:9222/json/version || exit 1 CMD ["cloakserve"]