-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (29 loc) · 1.35 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
#arm64v8
FROM debian:bullseye-slim as build
RUN dpkg --add-architecture armhf && \
apt-get update && \
apt-get install --yes --no-install-recommends git python3 build-essential cmake ca-certificates && \
apt-get install --yes --no-install-recommends gcc-arm-linux-gnueabihf libc6-dev-armhf-cross libc6:armhf libstdc++6:armhf && \
apt-get clean && \
rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
RUN git clone https://github.com/ptitSeb/box86.git; mkdir /box86/build && \
git clone https://github.com/ptitSeb/box64.git; mkdir /box64/build
WORKDIR /box86/build
RUN cmake .. -DRPI4ARM64=1 -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
make -j$(nproc) && \
make install DESTDIR=/tmp/install
WORKDIR /box64/build
RUN cmake .. -DRPI4ARM64=1 -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
make -j$(nproc) && \
make install DESTDIR=/tmp/install
FROM debian:bullseye-slim
LABEL "maintainer"="Weilbyte <me@weilbyte.dev>"
LABEL "org.opencontainers.image.source"="https://github.com/weilbyte/box"
COPY --from=build /tmp/install /
RUN dpkg --add-architecture armhf && \
apt-get update && \
apt-get install --yes --no-install-recommends libc6:armhf libstdc++6:armhf && \
apt-get -y autoremove && \
apt-get clean autoclean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists
ENTRYPOINT ["box64"]