-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (42 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
55 lines (42 loc) · 1.03 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Nightwatch.js Dockerfile
#
FROM sergiogq/js_automation_framework
# Install NodeJS:
#RUN apt-get install -y nodejs \
# npm \
# curl \
# wget \
# build-essential
RUN npm install -g yarn
RUN npm install -g n
RUN n latest
RUN apt-get install -y \
# Install ffmpeg for video recording:
ffmpeg \
&& npm install -g \
# Install Nightwatch.js:
nightwatch
RUN npm i -g ntl && \
npm i
ADD entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
# To get from .env file
#ENV FIREFOX WAT
# Add node system user/group with uid/gid 1000.
# This is a workaround for boot2docker issue #581, see
# https://github.com/boot2docker/boot2docker/issues/581
RUN useradd -ms /bin/bash node
#RUN ln -s /usr/bin/nodejs /usr/bin/node
USER node
WORKDIR /home/node
#COPY wait-for.sh /usr/local/bin/wait-for
COPY entrypoint.sh /usr/local/bin/entrypoint
#ENTRYPOINT ["entrypoint"]
#RUN nightwatch
#CMD ["nightwatch"]
CMD ["yarn", "install"]
CMD ["npm", " i"]
#CMD ["ntl"]
#CMD ["npm", "run", "e2e-test"]
ENTRYPOINT ["/entrypoint.sh"]