-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (41 loc) · 1.09 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
ARG ARCH
ARG VCS_REF
ARG BUILD_DATE
FROM ghcr.io/qemus/qemu-docker:5.06
RUN set -eu \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
git \
xz-utils \
python3 \
python3-venv \
python3-sphinx \
python3-sphinx-rtd-theme \
libglib2.0-dev \
libfdt-dev \
libpixman-1-dev \
zlib1g-dev \
ninja-build \
build-essential \
flex \
bison \
&& cd /tmp \
&& git clone https://github.com/zhaodice/qemu-anti-detection.git \
&& wget https://download.qemu.org/qemu-8.2.2.tar.xz \
&& tar -xJf qemu-8.2.2.tar.xz \
&& cd qemu-8.2.2 \
&& git apply ../qemu-anti-detection/qemu-8.2.0.patch \
&& PYTHON="$(which python3)" ./configure \
&& make install -j$(nproc) \
&& cd \
&& apt-get remove -y \
git \
python3 \
python3-venv \
python3-sphinx \
python3-sphinx-rtd-theme \
ninja-build \
build-essential \
flex \
bison \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/