Dockerfile: make docker image thinner
This commit is contained in:
parent
095d9fdd1a
commit
bfac4f3498
21
Dockerfile
21
Dockerfile
|
@ -1,22 +1,19 @@
|
|||
FROM deis/init
|
||||
FROM flitter/init
|
||||
MAINTAINER Xena <xena@yolo-swag.com>
|
||||
|
||||
# Update base system
|
||||
RUN apt-get update
|
||||
RUN apt-get upgrade -yq # 08-02-14
|
||||
|
||||
RUN apt-get -yq install build-essential autoconf libssl-dev
|
||||
RUN apt-get -yq install flex bison
|
||||
|
||||
RUN adduser --system --home /home/ircd ircd
|
||||
RUN mkdir /home/ircd/src
|
||||
RUN chmod 777 /home/ircd/src
|
||||
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
|
||||
|
||||
ADD . /home/ircd/src
|
||||
ADD extra/runit/ /etc/service/ircd/
|
||||
|
||||
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
|
||||
ADD extra/runit/ /etc/service/ircd/
|
||||
|
||||
RUN chmod -R 777 /home/ircd/run
|
||||
|
||||
|
|
Loading…
Reference in New Issue