FROM node:lts # Installations RUN apt-get update -y RUN apt-get upgrade -y # We don't need the standalone Chromium ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true # Install Google Chrome Stable and fonts # Note: this installs the necessary libs to make the browser work with Puppeteer. RUN apt-get update && apt-get install gnupg wget -y RUN wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor >/etc/apt/trusted.gpg.d/google-archive.gpg RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' RUN apt-get update RUN apt-get install google-chrome-stable -y --no-install-recommends RUN rm -rf /var/lib/apt/lists/* # VPN installation RUN apt-get update RUN apt-get install -y wget iputils-ping curl RUN wget -O /tmp/nordrepo.deb https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb RUN apt-get install -y /tmp/nordrepo.deb RUN apt-get update RUN apt-get install -y nordvpn=3.17.1 RUN apt-get remove -y nordvpn-release RUN rm /tmp/nordrepo.deb WORKDIR /data ARG TOKEN ENV TOKEN $TOKEN # Run the server ENTRYPOINT /etc/init.d/nordvpn start && sleep 5 && nordvpn login --token $TOKEN && nordvpn whitelist add subnet 10.0.10.0/24 && /bin/bash -c "$@" CMD node -v && npm run dev