FROM selenium/node-chrome:latest@sha256:31be7ba7ebe6db9f9b266c10fc5f6fce7568791a6ade91b6b6d20a29a988ef5b USER root RUN apt-get update -qqy \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \ && rm /bin/sh && ln -s /bin/bash /bin/sh \ && chown seluser /usr/local ENV NVM_DIR /usr/local/nvm RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \ && source $NVM_DIR/nvm.sh \ && nvm install v11 ENV CHROME_BIN /opt/google/chrome/chrome ENV INSIDE_DOCKER=1 WORKDIR /usr/src ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test