2014-09-08 17:58:01 +00:00
|
|
|
FROM flitter/init
|
2014-08-03 05:02:59 +00:00
|
|
|
MAINTAINER Xena <xena@yolo-swag.com>
|
|
|
|
|
|
|
|
# Update base system
|
2014-09-08 17:58:01 +00:00
|
|
|
RUN apt-get update && apt-get upgrade -yq && \
|
|
|
|
apt-get -yq install build-essential autoconf libssl-dev flex bison && \
|
|
|
|
adduser --system --home /home/ircd ircd && \
|
|
|
|
mkdir /home/ircd/src && \
|
|
|
|
chmod 777 /home/ircd/src
|
2014-08-03 05:02:59 +00:00
|
|
|
|
|
|
|
ADD . /home/ircd/src
|
|
|
|
|
|
|
|
RUN cd /home/ircd/src; ./configure --prefix=/home/ircd/run ; make ; make install
|
2014-09-08 17:58:01 +00:00
|
|
|
|
|
|
|
ADD doc/example.conf /home/ircd/run/etc/ircd.conf
|
|
|
|
ADD extra/runit/ /etc/service/ircd/
|
2014-08-03 05:02:59 +00:00
|
|
|
|
|
|
|
RUN chmod -R 777 /home/ircd/run
|
|
|
|
|
|
|
|
EXPOSE 6667
|
|
|
|
|
2014-08-10 04:53:58 +00:00
|
|
|
ENTRYPOINT /sbin/my_init
|