Files
nodarium/Dockerfile
Max Richter 91866b4e9a
All checks were successful
🚀 Release / release (push) Successful in 4m7s
feat/e2e-testing (#31)
Reviewed-on: #31
Co-authored-by: Max Richter <max@max-richter.dev>
Co-committed-by: Max Richter <max@max-richter.dev>
2026-02-03 22:29:43 +01:00

30 lines
936 B
Docker

# 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