forked from fonoster/routr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 1.03 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
FROM debian:buster-20200414
LABEL maintainer="Pedro Sanders <[email protected]>"
ENV TINI_VERSION v0.19.0
ENV LANG C.UTF-8
ARG ROUTR_VERSION=1.0.0-rc6
RUN mkdir -p /opt/routr
WORKDIR /opt/routr
COPY routr-${ROUTR_VERSION}_linux-x64_bin.tar.gz .
RUN apt-get update \
&& tar xvf routr-${ROUTR_VERSION}_linux-x64_bin.tar.gz \
&& mv routr-${ROUTR_VERSION}_linux-x64_bin/* . \
&& rm -rf routr-${ROUTR_VERSION}_linux-x64_bin.tar.gz \
routr-${ROUTR_VERSION}_linux-x64_bin \
routr.bat \
&& apt-get install curl -y \
&& apt-get install netcat -y \
&& curl -qL -o /usr/bin/netdiscover https://github.com/CyCoreSystems/netdiscover/releases/download/v1.2.5/netdiscover.linux.amd64 \
&& chmod +x /usr/bin/netdiscover \
&& apt-get remove curl -y \
&& apt-get autoremove -y
EXPOSE 4567
EXPOSE 5060/udp
EXPOSE 5060
EXPOSE 5061
EXPOSE 5062
EXPOSE 5063
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "-v", "-e", "143", "--"]
CMD ["./routr"]