1 | FROM selenium/node-chrome:latest@sha256:31be7ba7ebe6db9f9b266c10fc5f6fce7568791a6ade91b6b6d20a29a988ef5b
|
2 |
|
3 | USER root
|
4 |
|
5 | RUN 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 |
|
10 | ENV NVM_DIR /usr/local/nvm
|
11 | RUN 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 |
|
15 | ENV CHROME_BIN /opt/google/chrome/chrome
|
16 | ENV INSIDE_DOCKER=1
|
17 |
|
18 | WORKDIR /usr/src
|
19 | ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test
|