-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
59 lines (55 loc) · 1.32 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
58
59
FROM docker.io/tiredofit/alpine:3.21
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
ENV TINC_VERSION=d9e42faa6a7f4da98502be44566605a01a16a637 \
CONTAINER_ENABLE_MESSAGING=FALSE \
IMAGE_NAME="tiredofit/tinc" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-tinc/"
RUN source /assets/functions/00-container && \
set -x && \
package update && \
package upgrade && \
package add .tinc-build-deps \
autoconf \
build-base \
curl \
g++ \
gcc \
libc-utils \
libpcap-dev \
linux-headers \
lz4-dev \
lzo-dev \
make \
meson \
ninja \
ncurses-dev \
openssl-dev \
readline-dev \
tar \
zlib-dev \
&& \
\
package add .tinc-run-deps \
ca-certificates \
git \
inotify-tools \
libpcap \
lz4 \
lz4-libs \
lzo \
openssl \
ncurses \
readline \
zlib && \
\
clone_git_repo https://github.com/gsliepen/tinc ${TINC_VERSION} && \
meson setup builddir -Dprefix=/usr -Dsysconfdir=/etc -Djumbograms=true -Dtunemu=enabled -Dbuildtype=release && \
meson compile -C builddir && \
meson install -C builddir && \
package remove .tinc-build-deps && \
package cleanup && \
mkdir -p /var/log/tinc && \
rm -rf /etc/logrotate.d/* \
rm -rf /usr/src/*
EXPOSE 655/tcp 655/udp
COPY install /