-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
30 lines (20 loc) · 887 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:14 AS build
# Create a default user
RUN groupadd --system automation && \
useradd --system --create-home --gid automation automation && \
chown --recursive automation:automation /home/automation
RUN apt-get update && apt-get install -y unzip
RUN apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
WORKDIR /source
COPY features/ ./features/
COPY *.js .
COPY *.json .
COPY *.sh .
COPY cypress/ ./cypress/
RUN chown -R automation.automation /source
RUN wget https://github.com/cucumber/json-formatter/releases/download/v19.0.0/cucumber-json-formatter-linux-amd64 -O /usr/local/bin/cucumber-json-formatter
RUN chmod +x /usr/local/bin/cucumber-json-formatter
USER automation
RUN npm install
ENV PATH $PATH:/home/automation/.local/bin
ENTRYPOINT ["./run_all_cloud_standard_workflow.sh"]