-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
35 lines (28 loc) · 1.26 KB
/
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
FROM alpine:3.8
MAINTAINER Anton Malinskiy <[email protected]>
ENV PATH $PATH:/opt/platform-tools
RUN set -xeo pipefail && \
mkdir -m 0750 /root/.android && \
mkdir /etc/supervisord.d && \
apk update && \
apk add wget ca-certificates nodejs npm supervisor dcron bash && \
wget -O "/etc/apk/keys/sgerrand.rsa.pub" \
"https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub" && \
wget -O "/tmp/glibc.apk" \
"https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk" && \
wget -O "/tmp/glibc-bin.apk" \
"https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-bin-2.28-r0.apk" && \
apk add "/tmp/glibc.apk" "/tmp/glibc-bin.apk" && \
rm "/etc/apk/keys/sgerrand.rsa.pub" && \
rm "/root/.wget-hsts" && \
rm "/tmp/glibc.apk" "/tmp/glibc-bin.apk" && \
rm -r /var/cache/apk/APKINDEX.* && \
npm install rethinkdb
COPY adb/* /root/.android/
COPY bin/* /
COPY supervisor/supervisord.conf /etc
COPY cron/root /var/spool/cron/crontabs/root
RUN chmod +x /bootstrap.sh /clean.js /label.js /root/.android/update-platform-tools.sh && \
/root/.android/update-platform-tools.sh
EXPOSE 5037
ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]