Dockerfile: change to use deis/init

This commit is contained in:
Sam Dodrill 2014-08-09 21:53:58 -07:00
parent 7d3966bc9b
commit 095d9fdd1a
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:14.04 FROM deis/init
MAINTAINER Xena <xena@yolo-swag.com> MAINTAINER Xena <xena@yolo-swag.com>
# Update base system # Update base system
@ -13,6 +13,7 @@ RUN mkdir /home/ircd/src
RUN chmod 777 /home/ircd/src RUN chmod 777 /home/ircd/src
ADD . /home/ircd/src ADD . /home/ircd/src
ADD extra/runit/ /etc/service/ircd/
RUN cd /home/ircd/src; ./configure --prefix=/home/ircd/run ; make ; make install RUN cd /home/ircd/src; ./configure --prefix=/home/ircd/run ; make ; make install
ADD doc/example.conf /home/ircd//run/etc/ircd.conf ADD doc/example.conf /home/ircd//run/etc/ircd.conf
@ -20,7 +21,5 @@ ADD doc/example.conf /home/ircd//run/etc/ircd.conf
RUN chmod -R 777 /home/ircd/run RUN chmod -R 777 /home/ircd/run
EXPOSE 6667 EXPOSE 6667
USER ircd
CMD /home/ircd/run/bin/ircd -foreground
ENTRYPOINT /sbin/my_init

3
extra/runit/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
setuser ircd /home/ircd/run/bin/ircd -foreground