-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.image
59 lines (54 loc) · 1.31 KB
/
Dockerfile.image
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
56
57
58
59
FROM viryaos/sdk-qemu-user-aarch64:v3.7-45f9eeb-x86_64 AS sdk-qemu-user-aarch64
FROM arm64v8/alpine:3.7
COPY --from=sdk-qemu-user-aarch64 /home/builder/sdk-qemu-user-aarch64/qemu-aarch64 /usr/bin/qemu-aarch64
COPY --from=sdk-qemu-user-aarch64 /home/builder/sdk-qemu-user-aarch64/qemu-aarch64 /usr/bin/qemu-aarch64-static
COPY [ \
"./docker-extras/*", \
"/tmp/docker-build/" \
]
RUN \
# apk
apk update && \
\
# xen build deps
apk add argp-standalone && \
apk add autoconf && \
apk add automake && \
apk add bash && \
apk add curl && \
apk add curl-dev && \
apk add dev86 && \
apk add dtc-dev && \
apk add gcc && \
apk add gettext && \
apk add git && \
apk add iasl && \
apk add libaio-dev && \
apk add libfdt && \
apk add linux-headers && \
apk add make && \
apk add musl-dev && \
apk add ncurses-dev && \
apk add patch && \
apk add python2-dev && \
apk add texinfo && \
apk add util-linux-dev && \
apk add xz-dev && \
apk add yajl-dev && \
apk add zlib-dev && \
\
# qemu build deps
apk add bison && \
apk add flex && \
apk add glib-dev && \
apk add libattr && \
apk add libcap-dev && \
apk add pixman-dev && \
\
# copy vos_run file
cp /tmp/docker-build/vos_run /vos_run && \
\
# cleanup
cd /root && \
rm -rf /tmp/* && \
rm -f /var/cache/apk/*