-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (23 loc) · 845 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
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM alpine:latest
WORKDIR /inspircd/
RUN apk update && apk add gcc g++ make git gnutls gnutls-dev gnutls-c++ \
pkgconfig perl perl-net-ssleay perl-io-socket-ssl perl-libwww
RUN mkdir -p /src && \
cd /src && \
git clone https://github.com/inspircd/inspircd.git /inspircd
RUN adduser -S irc
RUN cd /inspircd && \
git checkout insp20 && \
./configure --disable-interactive --prefix=/inspircd/ --uid 10000 && \
make && \
make install
RUN apk del gcc g++ make git perl perl-net-ssleay perl-io-socket-ssl perl-libwww
RUN mkdir -p /inspircd/conf/
COPY ./irc.conf /inspircd/conf/inspircd.conf
RUN chmod -R 777 /inspircd/logs
RUN chmod -R 777 /var/run
EXPOSE 6667 6667
HEALTHCHECK CMD /usr/bin/nc 127.0.0.1 6667 < /dev/null || exit 1
USER irc
ENTRYPOINT ["/inspircd/bin/inspircd"]
CMD ["--nofork"]