forked from sola97/docker-ss-bbr-kcp-udpspeeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (40 loc) · 1.67 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
FROM alpine:3.12 as builder
LABEL maintainer="sola97 <[email protected]> "
ENV RINETD_BBR_POWERED_DOWNLOAD_URL https://github.com/linhua55/lkl_study/releases/download/v1.2/rinetd_bbr_powered
ENV RINETD_BBR_DOWNLOAD_URL https://github.com/linhua55/lkl_study/releases/download/v1.2/rinetd_bbr
ENV RINETD_PCC_DOWNLOAD_URL https://github.com/linhua55/lkl_study/releases/download/v1.2/rinetd_pcc
WORKDIR /
RUN apk update && \
apk add --no-cache git build-base linux-headers wget && \
git clone https://github.com/wangyu-/udp2raw-tunnel.git && \
cd udp2raw-tunnel && \
make dynamic && \
mv udp2raw_dynamic /bin/udp2raw && \
cd / && \
git clone https://github.com/wangyu-/UDPspeeder.git && \
cd UDPspeeder && \
make && \
install speederv2 /bin && \
git clone https://github.com/wangyu-/tinyPortMapper.git && \
cd tinyPortMapper && \
make && \
install tinymapper /bin && \
wget ${RINETD_BBR_POWERED_DOWNLOAD_URL} -qO /bin/rinetd-bbr-powered && \
wget ${RINETD_BBR_DOWNLOAD_URL} -qO /bin/rinetd-bbr && \
wget ${RINETD_PCC_DOWNLOAD_URL} -qO /bin/rinetd-pcc && \
chmod +x /bin/rinetd-*
FROM mritd/shadowsocks:3.3.4-20200701
SHELL ["/bin/bash", "-c"]
RUN apk update && \
apk add --no-cache libstdc++ iptables && \
rm -rf /var/cache/apk/* && \
mkdir -p /etc/v2ray-plugin
COPY --from=builder /bin/udp2raw /usr/bin
COPY --from=builder /bin/speederv2 /usr/bin
COPY --from=builder /bin/tinymapper /usr/bin
COPY --from=builder /bin/rinetd-bbr /usr/bin
COPY --from=builder /bin/rinetd-bbr-powered /usr/bin
COPY --from=builder /bin/rinetd-pcc /usr/bin
COPY runit /etc/service
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]