feat: add initial e2e tests
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,13 +1,22 @@
|
||||
FROM node:24-alpine
|
||||
# FROM jacoblincool/playwright:chromium-light
|
||||
FROM jacoblincool/playwright:firefox
|
||||
|
||||
# Install all required packages in one layer
|
||||
RUN apk add --no-cache curl git jq g++ make
|
||||
# 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 \
|
||||
@@ -16,4 +25,5 @@ RUN curl --silent --show-error --location --fail --retry 3 \
|
||||
&& rm /tmp/rustup-init.sh \
|
||||
&& rustup target add wasm32-unknown-unknown \
|
||||
&& rm -rf /usr/local/rustup/toolchains/*/share/doc \
|
||||
&& npm i -g pnpm
|
||||
&& npm i -g pnpm \
|
||||
&& pnpx playwright install firefox
|
||||
|
||||
Reference in New Issue
Block a user