-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.gnuworld
More file actions
53 lines (41 loc) · 1.22 KB
/
Dockerfile.gnuworld
File metadata and controls
53 lines (41 loc) · 1.22 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
FROM debian:13.1 AS build
RUN apt update && apt upgrade -y && apt install -y \
build-essential \
postgresql-common-dev \
liboath-dev \
libpq-dev \
liblog4cplus-2.0.5t64 \
liblog4cplus-dev \
pkgconf \
automake \
libltdl-dev
COPY ./gnuworld /src
#COPY ./patches /patches
#RUN cd /src && patch -p0 < /patches/log4c-alpine-compat+log-paths.patch
RUN cd /src && \
./autogen.sh && \
./configure \
--prefix=/gnuworld \
--enable-modules=cservice,ccontrol,openchanfix,dronescan \
--enable-ltdl-convenience \
--with-log4cplus \
--with-log4cplus-lib=$(pkgconf --variable=libdir log4cplus) \
--with-log4cplus-include=/usr/include \
--with-liboath-lib=/usr/lib && \
make -j4 && \
make install
FROM debian:13.1
EXPOSE 4400/tcp 6667/tcp 6669/tcp
RUN apt update && apt upgrade -y && apt install -y \
libpq5 \
liblog4cplus-2.0.5t64 \
strace \
bind9-utils \
liboath0t64 \
libltdl7
RUN groupadd -r gnuworld && useradd -r -s /usr/sbin/nologin -d /gnuworld -g gnuworld gnuworld
COPY --from=build --chown=gnuworld:gnuworld /gnuworld /gnuworld
RUN install -o gnuworld -g gnuworld -dm755 /gnuworld/log
USER gnuworld
WORKDIR /gnuworld/bin
ENTRYPOINT ["./gnuworld", "-c", "-f", "/gnuworld/etc/gnuworld.conf"]