-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (34 loc) · 950 Bytes
/
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
ARG FRM='testdasi/openvpn-hydesa-base'
ARG TAG='latest'
FROM ${FRM}:${TAG}
ARG FRM
ARG TAG
ENV LANG en_GB.UTF-8
ENV LAUNCHER_GUI_PORT 8000
ENV DNS_SERVER_PORT 53
ENV SOCKS_PROXY_PORT 9118
ENV HTTP_PROXY_PORT 8118
ENV USENET_HTTP_PORT 8080
ENV USENET_HTTPS_PORT 8090
ENV TORRENT_GUI_PORT 8112
ENV SEARCHER_GUI_PORT 5076
ENV DNS_SERVERS 127.2.2.2
ENV HOST_NETWORK 192.168.1.0/24
ENV SERVER_IP 192.168.1.2
EXPOSE ${LAUNCHER_GUI_PORT}/tcp \
${DNS_SERVER_PORT}/tcp \
${DNS_SERVER_PORT}/udp \
${SOCKS_PROXY_PORT}/tcp \
${HTTP_PROXY_PORT}/tcp \
${USENET_HTTP_PORT}/tcp \
${USENET_HTTPS_PORT}/tcp \
${TORRENT_GUI_PORT}/tcp \
${SEARCHER_GUI_PORT}/tcp
ADD config /temp
ADD scripts /
RUN /bin/bash /install.sh \
&& rm -f /install.sh
VOLUME ["/config"]
ENTRYPOINT ["tini", "--", "/entrypoint.sh"]
HEALTHCHECK CMD /healthcheck.sh
RUN echo "$(date "+%d.%m.%Y %T") Built from ${FRM} with tag ${TAG}" >> /build_date.info