Debian Codegraph @

docker/Dockerfile

raw
1 FROM ubuntu:24.04
2
3 ENV DEBIAN_FRONTEND="noninteractive"
4 RUN apt-get update && apt-get install -y \
5 build-essential \
6 pkg-config \
7 checkinstall \
8 git \
9 autoconf \
10 automake \
11 libtool-bin \
12 libreadline-dev \
13 libusb-1.0-0-dev \
14 libcurl4-openssl-dev \
15 libssl-dev \
16 libzip-dev \
17 zlib1g-dev \
18 python3 \
19 udev
20
21 RUN git clone https://github.com/libimobiledevice/libplist.git && \
22 cd libplist && \
23 ./autogen.sh && \
24 make && \
25 make install && \
26 cd .. && \
27 rm libplist -rf
28
29 RUN git clone https://github.com/libimobiledevice/libtatsu.git && \
30 cd libtatsu && \
31 ./autogen.sh && \
32 make && \
33 make install && \
34 cd .. && \
35 rm libtatsu -rf
36
37 RUN git clone https://github.com/libimobiledevice/libimobiledevice-glue.git && \
38 cd libimobiledevice-glue && \
39 ./autogen.sh && \
40 make && \
41 make install && \
42 cd .. && \
43 rm libimobiledevice-glue -rf
44
45 RUN git clone https://github.com/libimobiledevice/libusbmuxd.git && \
46 cd libusbmuxd && \
47 ./autogen.sh && \
48 make && \
49 make install && \
50 cd .. && \
51 rm libusbmuxd -rf
52
53 RUN git clone https://github.com/libimobiledevice/libimobiledevice.git && \
54 cd libimobiledevice && \
55 ./autogen.sh && \
56 make && \
57 make install && \
58 cd .. && \
59 rm libimobiledevice -rf
60
61 RUN git clone https://github.com/libimobiledevice/libirecovery.git && \
62 cd libirecovery && \
63 ./autogen.sh && \
64 make && \
65 make install && \
66 cd .. && \
67 rm libirecovery -rf
68
69 RUN git clone https://github.com/libimobiledevice/usbmuxd.git && \
70 cd usbmuxd && \
71 ./autogen.sh && \
72 make && \
73 make install && \
74 cd .. && \
75 rm usbmuxd -rf
76
77 RUN git clone https://github.com/libimobiledevice/idevicerestore.git && \
78 cd idevicerestore && \
79 ./autogen.sh && \
80 make && \
81 make install && \
82 cd .. && \
83 rm idevicerestore -rf
84
85 RUN ldconfig
86 WORKDIR /tmp
87 COPY idevicerestore.sh /usr/sbin/idevicerestore.sh
88 CMD idevicerestore.sh
89