1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-22 09:12:19 -05:00
kaiwa/Docker/Dockerfile

46 lines
1.5 KiB
Docker
Raw Normal View History

2015-04-01 04:56:40 -04:00
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
2015-04-08 11:43:24 -04:00
ENV XMPP_NAME Kaiwa
2015-04-01 04:56:40 -04:00
ENV XMPP_DOMAIN example.com
ENV XMPP_WSS wss://example.com:5281/xmpp-websocket/
ENV XMPP_MUC chat.example.com
ENV XMPP_STARTUP groupchat/room%40chat.example.com
ENV XMPP_ADMIN admin
ENV LDAP_DN cn=admin,dc=example.com
ENV LDAP_PWD password
ENV LDAP_GROUP mygroup
2015-05-07 10:57:40 -04:00
ENV LDAP_USER_BASE ou=users,dc=example.com
ENV LDAP_GROUP_BASE ou=groups,dc=example.com
2015-04-01 04:56:40 -04:00
RUN sed -i 's/^#\s*\(deb.*universe\)$/\1/g' /etc/apt/sources.list && \
sed -i 's/^#\s*\(deb.*multiverse\)$/\1/g' /etc/apt/sources.list && \
apt-get -y update && \
dpkg-divert --local --rename --add /sbin/initctl && \
ln -sf /bin/true /sbin/initctl && \
dpkg-divert --local --rename --add /usr/bin/ischroot && \
ln -sf /bin/true /usr/bin/ischroot && \
apt-get -y upgrade && \
apt-get install -y vim wget sudo net-tools pwgen unzip openssh-server \
logrotate supervisor language-pack-en software-properties-common \
python-software-properties apt-transport-https ca-certificates curl && \
apt-get clean
RUN locale-gen en_US && locale-gen en_US.UTF-8 && echo 'LANG="en_US.UTF-8"' > /etc/default/locale
2015-09-09 19:48:57 -04:00
RUN apt-get update && apt-get install -y --force-yes nodejs git-core uuid-dev
2015-04-01 04:56:40 -04:00
RUN apt-get remove -y --force-yes nodejs && apt-get install -y --force-yes nodejs-legacy npm
RUN git clone git://github.com/digicoop/kaiwa.git
2015-04-01 04:56:40 -04:00
RUN cd kaiwa && npm install
2015-04-01 04:56:40 -04:00
ADD app /app
RUN chmod +x /app/start.sh
CMD "/app/start.sh"