Skip to content

Instantly share code, notes, and snippets.

@sluger
Created May 14, 2024 08:47
Show Gist options
  • Save sluger/1c053ddf1702ebc58717493f995a9039 to your computer and use it in GitHub Desktop.
Save sluger/1c053ddf1702ebc58717493f995a9039 to your computer and use it in GitHub Desktop.
Playwright docker image with node
FROM mcr.microsoft.com/playwright:v1.44.0-jammy
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --batch --yes --dearmor -o /etc/apt/keyrings/nodesource.gpg
ENV NODE_MAJOR 20
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install nodejs -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment