forked from lo-decibel/JitStreamer-Container
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
64 lines (62 loc) · 2.33 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 rust:slim-bullseye
RUN mkdir -p /JitStreamer /DMG \
&& apt-get update \
&& apt-get install -y \
udev \
libudev1 \
libssl1.1 \
libudev-dev \
libssl-dev \
python3-dev \
build-essential \
pkg-config \
checkinstall \
git autoconf \
automake \
libtool-bin \
curl \
&& git clone https://github.com/libusb/libusb /build/libusb \
&& cd /build/libusb && git checkout cc498de \
&& ./autogen.sh && make install \
&& git clone https://github.com/libimobiledevice/libplist /build/libplist \
&& cd /build/libplist && git checkout bfc9778 \
&& ./autogen.sh && make install \
&& git clone https://github.com/libimobiledevice/libimobiledevice-glue /build/libimobiledevice-glue \
&& cd /build/libimobiledevice-glue && git checkout d2ff796 \
&& ./autogen.sh && make install \
&& git clone https://github.com/libimobiledevice/libusbmuxd /build/libusbmuxd \
&& cd /build/libusbmuxd && git checkout f47c36f \
&& ./autogen.sh && make install \
&& git clone https://github.com/libimobiledevice/libimobiledevice /build/libimobiledevice \
&& cd /build/libimobiledevice && git checkout 963083b \
&& ./autogen.sh && make install \
&& git clone https://github.com/libimobiledevice/usbmuxd /build/usbmuxd \
&& cd /build/usbmuxd && git checkout d0cda19 \
&& ./autogen.sh && make install \
&& git clone https://github.com/jkcoxson/JitStreamer /build/JitStreamer \
&& cd /build/JitStreamer && git checkout c2fda05 \
&& sed -i 's/,\?\s*"vendored"//g' Cargo.toml \
&& cargo build --release \
&& mv target/release/jit_streamer /JitStreamer \
&& mv /build/JitStreamer/target/release/pair /JitStreamer \
&& rm -r /build \
&& apt-get remove -y \
libudev-dev \
libssl-dev \
python3-dev \
build-essential \
pkg-config \
checkinstall \
git \
autoconf \
automake \
libtool-bin \
curl \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY ./scripts/pair-device.sh /usr/local/bin/pair-device
COPY ./scripts/entrypoint.sh /usr/local/bin/entrypoint
RUN chmod +x /usr/local/bin/pair-device /usr/local/bin/entrypoint
WORKDIR /JitStreamer
ENTRYPOINT entrypoint