diff --git a/services/web/Dockerfile.frontend b/services/web/Dockerfile.frontend new file mode 100644 index 0000000000..529a4f1f9a --- /dev/null +++ b/services/web/Dockerfile.frontend @@ -0,0 +1,6 @@ +FROM node:8.9.4 + +# Install Google Chrome +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - +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 && apt-get install -y google-chrome-stable diff --git a/services/web/docker-compose.yml b/services/web/docker-compose.yml index 930d3cdc02..5862790191 100644 --- a/services/web/docker-compose.yml +++ b/services/web/docker-compose.yml @@ -20,6 +20,15 @@ services: - mongo command: node app.js + test_frontend: + build: + context: . + dockerfile: Dockerfile.frontend + volumes: + - .:/app + working_dir: /app + command: npm run test:frontend + redis: image: redis