]>
Commit | Line | Data |
---|---|---|
446026a1 SW |
1 | FROM alpine:3.17 AS build |
2 | ||
3 | RUN apk --no-cache update && \ | |
4 | apk --no-cache upgrade && \ | |
5 | apk --no-cache add \ | |
6 | build-base \ | |
7 | autoconf \ | |
8 | automake \ | |
9 | libtool \ | |
10 | pkgconfig \ | |
11 | check-dev \ | |
12 | file \ | |
13 | bison \ | |
14 | patch \ | |
15 | postgresql12-dev \ | |
16 | log4cplus-dev | |
17 | ||
18 | COPY ./gnuworld /src | |
19 | COPY ./patches /patches | |
20 | ||
21 | #RUN ls /src | |
22 | RUN cd /src && patch -p0 < /patches/log4c-alpine-compat+log-paths.patch | |
23 | RUN cd /src && \ | |
24 | ./configure \ | |
25 | --prefix=/gnuworld \ | |
26 | --enable-modules=cservice,ccontrol,openchanfix,dronescan \ | |
27 | --enable-ltdl-convenience \ | |
28 | --with-log4cplus \ | |
29 | --with-log4cplus-lib=/usr/lib \ | |
30 | --with-log4cplus-include=/usr/include && \ | |
31 | make && \ | |
32 | make install | |
33 | ||
34 | FROM alpine:3.17 | |
35 | MAINTAINER ratler@undernet.org | |
36 | ||
37 | EXPOSE 4400/tcp 6667/tcp 6669/tcp | |
38 | ||
39 | RUN apk --no-cache update && \ | |
40 | apk --no-cache upgrade && \ | |
41 | apk --no-cache add \ | |
42 | libtool \ | |
43 | postgresql12 \ | |
44 | strace \ | |
45 | bind-tools \ | |
46 | log4cplus | |
47 | ||
48 | RUN addgroup -S gnuworld && \ | |
49 | adduser -D -S -s /sbin/nologin -G gnuworld gnuworld | |
50 | ||
51 | COPY --from=build /gnuworld /gnuworld | |
52 | ||
53 | RUN install -o gnuworld -g gnuworld -dm755 /gnuworld/log | |
54 | #RUN chown -R ircd:ircd /ircd/lib | |
55 | ||
56 | USER gnuworld | |
57 | WORKDIR /gnuworld/bin | |
58 | ENTRYPOINT ["./gnuworld", "-c", "-f", "/gnuworld/etc/gnuworld.conf"] |