-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
63 lines (41 loc) · 1.57 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
FROM debian:bullseye
#lokinet
RUN apt-get update
RUN apt install --no-install-recommends --no-install-suggests -y ca-certificates curl
RUN curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg
RUN echo "deb https://deb.oxen.io bullseye main" | tee /etc/apt/sources.list.d/oxen.list
RUN apt update
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
RUN apt install lokinet -y
RUN apt install sudo --no-install-recommends libcap2-bin -y
RUN mkdir /var/lib/lokinet/conf.d
COPY 00-exit.ini /var/lib/lokinet/conf.d/00-exit.ini
COPY lokinet.ini /var/lib/lokinet/conf.d/lokinet.ini
#DANTE
ENV DANTE_VER=1.4.2
ENV DANTE_URL=https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ENV DANTE_SHA=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
ENV DANTE_FILE=dante.tar.gz
ENV DANTE_TEMP=dante
ENV DANTE_DEPS="build-essential"
RUN set -xe \
&& apt-get install -y $DANTE_DEPS \
&& mkdir $DANTE_TEMP \
&& cd $DANTE_TEMP \
&& curl -sSL $DANTE_URL -o $DANTE_FILE \
&& echo "$DANTE_SHA *$DANTE_FILE" | shasum -c \
&& tar xzf $DANTE_FILE --strip 1 \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf $DANTE_TEMP \
&& apt-get purge -y --auto-remove $DANTE_DEPS \
&& rm -rf /var/lib/apt/lists/*
COPY ./data/sockd.conf /etc/dante/sockd.conf
ENV CFGFILE=/etc/dante/sockd.conf
ENV PIDFILE=/run/sockd.pid
ENV WORKERS=10
EXPOSE 1080
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
ENTRYPOINT ["/sbin/entrypoint.sh"]