-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.template
38 lines (30 loc) · 1.05 KB
/
Dockerfile.template
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
FROM multiarch/alpine:%%ARCH%%-%%ALPINE_VERSION%%
# Installing static busybox
ADD https://github.com/nlm/busybox-static-multiarch/releases/download/prerelease-1.25.1/busybox-%%CROSS_TRIPLE%% /bin/busybox.static
RUN chmod 755 /bin/busybox.static \
&& mv /bin/busybox.static /bin/busybox
RUN /bin/busybox --install -s
# Installing core packages
RUN apk update \
&& apk add udev bkeymaps \
&& find /var/cache/apk -type f -delete
# Installing init and direct dependencies
COPY assets/init/init assets/init/functions /
COPY assets/etc/ /etc/
# -------------------------------
# Add your custom directives here
# -------------------------------
# Adding build date
RUN date -u +%Y%m%d-%H%M%S > /.builddate
# Listing the files to export
RUN find . -xdev \
-not -name .dockerenv \
-not -name .exports \
-not -name qemu-%%ARCH%%-static \
> .exports
# Installing Kernel
RUN apk update \
&& apk add linux-vanilla \
&& find /var/cache/apk -type f -delete
# Finding installed kernel version
RUN ls -1 /lib/modules > /.kversion