forked from webappio/react-e2e-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayerfile
More file actions
22 lines (17 loc) · 706 Bytes
/
Layerfile
File metadata and controls
22 lines (17 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM vm/ubuntu:18.04
# To note: Layerfiles create entire VMs, *not* containers!
RUN curl -fSsL https://deb.nodesource.com/setup_12.x | bash && \
apt-get install nodejs python3 make gcc build-essential \
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \
rm -f /etc/apt/sources.list.d/nodesource.list
# node is a memory hog
MEMORY 2G
ENV NODE_OPTIONS=--max-old-space-size=8192
COPY . .
RUN mkdir cypress
RUN npm install
RUN BACKGROUND npm start
RUN BACKGROUND cd cypress && python3 -m http.server 8000
RUN ./node_modules/.bin/cypress run
# start a webserver to view test results
EXPOSE WEBSITE http://localhost:8000