-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
64 lines (58 loc) · 1.46 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Build arguments for cross-compilation
ARG TARGETPLATFORM
RUN apt update && apt-get install -y \
build-essential \
git \
cmake \
ninja-build \
pkg-config \
ccache \
clang \
llvm \
lld \
binfmt-support \
libsdl2-dev \
libepoxy-dev \
libssl-dev \
python3-setuptools \
libgcc-12-dev-amd64-cross \
libgcc-12-dev-arm64-cross \
libgcc-12-dev-i386-cross \
libgcc-12-dev-armhf-cross \
nasm \
python3-clang
RUN apt-get install -y \
libstdc++-12-dev-amd64-cross \
libstdc++-12-dev-arm64-cross \
libstdc++-12-dev-i386-cross \
libstdc++-12-dev-armhf-cross \
squashfs-tools \
squashfuse \
libc-bin \
libc6-dev-i386-amd64-cross \
libc6-dev-amd64-i386-cross \
lib32stdc++-12-dev-amd64-cross \
expect \
sudo \
fuse \
qtbase5-dev \
qtdeclarative5-dev \
curl
# Install platform-specific dependencies
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
apt-get install -y \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu; \
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
apt-get install -y \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf; \
else \
echo "Unsupported platform: $TARGETPLATFORM" && exit 1; \
fi
# Clean up
RUN apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*