FROM node:18-bullseye
RUN apt-get update
RUN apt-get install -yq --no-install-suggests --no-install-recommends xauth xvfb
WORKDIR /app
COPY package*.json binding.gyp *.cc ./
RUN npm install
RUN npm audit fix
RUN mkdir -p ../out
COPY . .