Dockerfile 527 B

1234567891011121314151617181920
  1. FROM selenium/node-chrome:latest
  2. USER root
  3. RUN apt-get update -qqy \
  4. && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
  5. && rm /bin/sh && ln -s /bin/bash /bin/sh \
  6. && chown seluser /usr/local
  7. ENV NVM_DIR /usr/local/nvm
  8. RUN mkdir -p $NVM_DIR \
  9. && wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash \
  10. && source $NVM_DIR/nvm.sh \
  11. && nvm install v12
  12. ENV CHROME_BIN /opt/google/chrome/chrome
  13. ENV INSIDE_DOCKER=1
  14. WORKDIR /usr/src
  15. ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test