forked from blueimp/wdio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1000 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
30
31
32
33
34
35
36
37
38
39
40
41
FROM alpine:3.10
RUN echo '@edgetesting http://dl-cdn.alpinelinux.org/alpine/edge/testing' \
>> /etc/apk/repositories
RUN apk --no-cache add \
nodejs \
npm \
ffmpeg \
android-tools@edgetesting \
&& npm install -g \
npm@latest \
@wdio/cli@^5.10.8 \
@wdio/local-runner@^5.10.8 \
@wdio/mocha-framework@^5.10.8 \
@wdio/spec-reporter@^5.9.3 \
@wdio/sync@^5.10.8 \
chai@^4.2.0 \
mailhog@^4.1.0 \
uuid@^3.3.2 \
wdio-screen-commands@^2.6.0 \
webdriverio@^5.10.8 \
# Clean up obsolete files:
&& rm -rf \
/tmp/* \
/root/.npm
# Set NODE_PATH to be able to require globally installed packages:
ENV NODE_PATH=/usr/lib/node_modules
# Avoid permission issues with host mounts by assigning a user/group with
# uid/gid 1000 (usually the ID of the first user account on GNU/Linux):
RUN adduser -D -u 1000 wdio
USER wdio
WORKDIR /opt
COPY bin/wait-for-hosts.sh /usr/local/bin/wait-for-hosts
ENTRYPOINT ["wait-for-hosts", "--", "wdio"]