forked from kraiz/icecold-peered
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (58 loc) · 2.02 KB
/
Dockerfile
File metadata and controls
67 lines (58 loc) · 2.02 KB
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
60
61
62
63
64
65
66
67
FROM debian:jessie-slim AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
curl \
gettext \
libboost-system-dev \
libbz2-dev \
libssl-dev \
pkg-config
# peervpn
RUN curl -L https://github.com/peervpn/peervpn/archive/master.tar.gz | tar xz -C /tmp
RUN cd /tmp/peervpn-master \
&& make
# eiskaltdcpp
RUN curl -L https://github.com/eiskaltdcpp/eiskaltdcpp/archive/master.tar.gz | tar xz -C /tmp
RUN mkdir -p /tmp/eiskaltdcpp-master/builddir
RUN cd /tmp/eiskaltdcpp-master/builddir \
&& cmake -DCMAKE_BUILD_TYPE=Release \
-DLUA_SCRIPT=OFF \
-DUSE_MINIUPNP=OFF \
-DPERL_REGEX=OFF \
-DNO_UI_DAEMON=ON \
-DJSONRPC_DAEMON=ON \
-DLOCAL_JSONCPP=ON \
-DUSE_QT=OFF \
-DUSE_QT5=OFF \
-DUSE_IDNA=OFF \
-DFREE_SPACE_BAR_C=OFF \
-DLINK=STATIC \
-Dlinguas="" \
..
RUN cd /tmp/eiskaltdcpp-master/builddir \
&& make
# icecult
RUN curl -L https://github.com/campbebj/icecult/archive/master.tar.gz | tar xz -C /tmp
RUN curl -L https://caddyserver.com/download/linux/amd64?license=personal | tar xz -C /bin
# forego - process manager
RUN curl https://bin.equinox.io/c/ekMN3bCZFUn/forego-stable-linux-amd64.tgz | tar xz -C /bin
# -----------------------------------------------------------------------------
# production image:
# -----------------------------------------------------------------------------
FROM debian:jessie-slim
COPY --from=builder /tmp/peervpn-master/peervpn \
/tmp/eiskaltdcpp-master/builddir/eiskaltdcpp-daemon/eiskaltdcpp-daemon \
/bin/forego \
/bin/caddy \
/bin/
COPY --from=builder /tmp/icecult-master/app /opt/icecult
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
iproute2 \
libboost-system1.55.0
ADD ./Procfile /
ADD ./Caddyfile /
EXPOSE 80/tcp 7000/udp
CMD ["/bin/forego", "start"]