-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·29 lines (18 loc) · 770 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·29 lines (18 loc) · 770 Bytes
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
FROM alpine:latest as builder
RUN apk add git curl alpine-sdk libressl-dev zlib-dev wget
RUN git clone https://github.com/TelegramMessenger/MTProxy
WORKDIR /MTProxy
RUN wget -c https://raw.githubusercontent.com/ICQFan4ever/MTProxyARMPatch/master/arm.patch
RUN patch -p1 < arm.patch
RUN wget -c https://raw.githubusercontent.com/alexdoesh/mtproxy/master/patches/randr_compat.patch
RUN patch -p0 < randr_compat.patch
RUN apk add linux-headers
RUN export NUMCPUS=$(grep -c '^processor' /proc/cpuinfo)
RUN make -j $NUMCPUS
FROM alpine:latest
RUN apk add libressl-dev zlib-dev
WORKDIR /mtproxy
COPY --from=builder /MTProxy/objs/bin/mtproto-proxy /mtproxy/mtproto-proxy
ADD entry.sh /mtproxy/entry.sh
RUN chmod +x /mtproxy/entry.sh
ENTRYPOINT ["/mtproxy/entry.sh"]