UNPKG

575 BPlain TextView Raw
1FROM selenium/node-chrome:latest@sha256:31be7ba7ebe6db9f9b266c10fc5f6fce7568791a6ade91b6b6d20a29a988ef5b
2
3USER root
4
5RUN apt-get update -qqy \
6 && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
7 && rm /bin/sh && ln -s /bin/bash /bin/sh \
8 && chown seluser /usr/local
9
10ENV NVM_DIR /usr/local/nvm
11RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
12 && source $NVM_DIR/nvm.sh \
13 && nvm install v11
14
15ENV CHROME_BIN /opt/google/chrome/chrome
16ENV INSIDE_DOCKER=1
17
18WORKDIR /usr/src
19ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test