mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add frontend test docker config
Adds Dockerfile to make headless Chrome image
This commit is contained in:
parent
89c9475d29
commit
ff7e016227
2 changed files with 15 additions and 0 deletions
6
services/web/Dockerfile.frontend
Normal file
6
services/web/Dockerfile.frontend
Normal file
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue