# FROM jacoblincool/playwright:chromium-light FROM jacoblincool/playwright:firefox # RUN apk add --no-cache curl git jq g++ make RUN apt update && apt install -y curl git jq g++ make \ libgl1-mesa-dri \ libglapi-mesa \ libosmesa6 \ mesa-utils \ xvfb \ && rm -rf /var/lib/apt/lists/* # Set Rust paths ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 # Install Rust, wasm target, and pnpm RUN curl --silent --show-error --location --fail --retry 3 \ --proto '=https' --tlsv1.2 \ --output /tmp/rustup-init.sh https://sh.rustup.rs \ && sh /tmp/rustup-init.sh -y --no-modify-path --profile minimal \ && rm /tmp/rustup-init.sh \ && rustup target add wasm32-unknown-unknown \ && rm -rf /usr/local/rustup/toolchains/*/share/doc \ && npm i -g pnpm \ && pnpx playwright install firefox