-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (30 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
34 lines (30 loc) · 1.04 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Configure multiarch for arm64 cross-compilation
RUN dpkg --add-architecture arm64 && \
sed -i 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list && \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu \
pkg-config \
git \
ca-certificates \
python3 \
libsdl2-dev:arm64 \
libasound2-dev:arm64 \
libfreetype6-dev:arm64 \
libgles2-mesa-dev:arm64 \
libegl1-mesa-dev:arm64 \
libudev-dev:arm64 \
libvulkan-dev:arm64 \
kmod \
&& rm -rf /var/lib/apt/lists/*
COPY build.sh /build.sh
RUN chmod +x /build.sh
COPY patches/ /patches/
WORKDIR /build
ENTRYPOINT ["/build.sh"]