forked from j3k0/docker-tinc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
24 lines (19 loc) · 801 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
FROM debian
MAINTAINER Florian Jensen <[email protected]>
ENV TINC_VERSION=1.1~pre18-1
# Remove SUID programs
RUN for i in `find / -perm +6000 -type f 2>/dev/null`; do chmod a-s $i; done
RUN \
export DEBIAN_FRONTEND=noninteractive && \
mkdir -p /etc/tinc/nets.boot && \
echo "deb-src http://httpredir.debian.org/debian/ experimental main contrib non-free" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y net-tools && \
apt-get build-dep -y tinc=${TINC_VERSION} && \
apt-get source --compile tinc=${TINC_VERSION} && \
dpkg -i tinc_${TINC_VERSION}_*.deb && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 655/tcp 655/udp
VOLUME /etc/tinc
ENTRYPOINT [ "/usr/sbin/tinc" ]
CMD [ "start", "-D", "-U", "nobody" ]