Dockerfile 646 B

123456789101112131415161718
  1. FROM node:18.10-buster
  2. ENV WORKDIR /home/workspace
  3. RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
  4. && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
  5. RUN apt-get update && apt-get install -y g++ build-essential yarn
  6. # Cypress requirements (https://docs.cypress.io/guides/getting-started/installing-cypress#Ubuntu-Debian)
  7. RUN apt-get update && apt-get install -y --fix-missing libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 \
  8. libnss3 libxss1 libasound2 libxtst6 xauth xvfb
  9. # Define working directory.
  10. WORKDIR ${WORKDIR}
  11. CMD node