Created
May 14, 2024 08:47
-
-
Save sluger/1c053ddf1702ebc58717493f995a9039 to your computer and use it in GitHub Desktop.
Playwright docker image with node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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