FROM ubuntu:22.04 RUN apt-get update && apt-get install -y curl RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs RUN npm install -g playwright && npx playwright install-deps RUN useradd -d /home/nodejs -m -s /usr/bin/bash -p `openssl rand -hex 32` nodejs RUN mkdir /app && chown nodejs:nodejs /app USER nodejs RUN npx playwright install WORKDIR /app CMD ["node"]