-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
52 lines (41 loc) · 1.75 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
FROM keymetrics/pm2:18-buster
MAINTAINER ifiht <peter@never.lan>
#+=======[ ENV VARS ]===========================+#
ENV TERM linux
ENV GPG_TTY /dev/console
ENV DEBIAN_FRONTEND noninteractive
#+=======[ INSTALL PRE-REQS ]===================+#
RUN apt-get update
RUN apt-get -y install apt ca-certificates curl dirmngr gnupg
#software-properties-common apt-transport-https
#+=======[ ADD APT REPOS ]======================+#
RUN echo "deb http://deb.i2p2.de/ buster main" \
| tee /etc/apt/sources.list.d/i2p.list
#software-properties-common
# remove "-k" from production builds!!!
#RUN curl -k -o /usr/share/keyrings/i2p-archive-keyring.gpg https://geti2p.net/_static/i2p-archive-keyring.gpg
COPY ./i2p-archive-keyring.gpg /usr/share/keyrings/i2p-archive-keyring.gpg
RUN ln -sf /usr/share/keyrings/i2p-archive-keyring.gpg /etc/apt/trusted.gpg.d/i2p-archive-keyring.gpg
#+=======[ PRIVOXY, TOR, I2P ]=======+#
RUN apt-get update
RUN apt-get -y install privoxy tor i2p i2p-keyring \
nano net-tools procps
#!! ^ debug builds only!!
#+=======[ SYSTEM SETUP ]=======================+#
#RUN echo "tun" >> /etc/modules
RUN mkdir /var/run/tor && chown debian-tor:debian-tor /var/run/tor && chmod 700 /var/run/tor
#RUN mkdir /dev/net && mknod /dev/net/tun c 10 200
#RUN chmod 0666 /dev/net/tun
# Copy application files
COPY ./etc /etc/
COPY ./opt /opt/
#ENTRYPOINT ["pm2-docker", "/opt/procs.json"]
ENTRYPOINT ["pm2-runtime", "start", "/opt/procs.json"]
#CMD privoxy --pidfile /var/run/privoxy.pid --user privoxy --no-daemon /etc/privoxy/config
#ENTRYPOINT ["bash"]
EXPOSE 28080
#EXPOSE 28080/udp
#HEALTHCHECK --interval=60s --timeout=15s \
# CMD smbclient -L \\localhost -U % -m SMB3
#VOLUME ["/etc", "/opt/i2psnark"]
#ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/samba.sh"]