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