-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·52 lines (42 loc) · 1.66 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
FROM ubuntu:14.04
MAINTAINER Borja Maceira <[email protected]>
ENV REFRESHED_AT 2016-09-22
ENV VERSION 0.0.1
ENV DEBIAN_FRONTEND noninteractive
ENV ANOPE_VERSION 2.0.4
RUN apt-get update && \
apt-get install -y build-essential curl libgnutls-dev libssl-dev ca-certificates cmake libpcre3-dev libmysqlclient-dev mysql-client unzip wget gettext --no-install-recommends && \
useradd -u 10000 -d /anope/ anope && \
gpasswd -a anope irc && \
curl -s --location https://github.com/anope/anope/releases/download/$ANOPE_VERSION/anope-$ANOPE_VERSION-source.tar.gz | tar xz && \
mkdir -p /src && \
mv anope-$ANOPE_VERSION-source /src/anope && \
cd /src/anope/ && \
mv modules/extra/m_mysql.cpp modules/ && \
mv modules/extra/m_sql_oper.cpp modules/ && \
mv modules/extra/m_ssl_openssl.cpp modules/ && \
mv modules/extra/m_ssl_gnutls.cpp modules/ && \
ln -s modules/extra/stats/ modules/stats && \
mkdir build && \
cd build && \
cmake -Wall \
-DINSTDIR:STRING=/anope \
-DDEFUMASK:STRING=077 \
-DCMAKE_BUILD_TYPE:STRING=RELEASE \
-DUSE_RUN_CC_PL:BOOLEAN=ON \
-DUSE_PCH:BOOLEAN=ON .. && \
make && \
make install && \
apt-get -y remove build-essential cmake && \
apt-get clean && \
rm -r /var/lib/apt/lists/* && \
chown anope:irc -Rfv /anope && \
chmod 754 -Rfv /anope
ADD conf/limits.conf /etc/security/limits.d/anope.conf
ADD conf/services.conf /anope/conf/services.conf
ADD conf/services.motd /anope/conf/services.motd
VOLUME ["/anope/logs", "/anope/conf"]
WORKDIR /anope
ENTRYPOINT ["/anope/bin/services","--nofork", "--localedir=/anope/locale"]
CMD [""]
EXPOSE 8000 8888