-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
65 lines (38 loc) · 1.47 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
53
54
55
56
57
58
59
60
61
62
63
FROM dockerfile/nodejs:latest
MAINTAINER WoT.io Devs <[email protected]>
RUN mkdir -p /data/db
RUN mkdir -p /data/server_logs
VOLUME ["/data"]
# Install RabbitMQ
ADD rabbitmq-signing-key-public.asc /tmp/rabbitmq-signing-key-public.asc
RUN apt-key add /tmp/rabbitmq-signing-key-public.asc
RUN echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list
RUN apt-get -qq update > /dev/null
RUN apt-get -qq -y install rabbitmq-server > /dev/null
RUN /usr/sbin/rabbitmq-plugins enable rabbitmq_management
RUN echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config
EXPOSE 5672 15672 4369
# Install MongoDB
# Import MongoDB public GPG key AND create a MongoDB list file
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list
RUN apt-get update && apt-get install -y mongodb-org
EXPOSE 27017
# Start with a known base
WORKDIR /root
# Install supervisor
RUN npm install -g supervisor
# Install Git
RUN apt-get install git
# Install BipIO
WORKDIR /usr/local/lib/node_modules
RUN git clone https://github.com/bipio-server/bipio.git
WORKDIR /usr/local/lib/node_modules/bipio
RUN npm install
# Add config
RUN mv /etc/localtime /etc/localtime.bak
RUN ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
EXPOSE 5000
ADD ./bootstrap.sh /root/bootstrap.sh
RUN chmod 755 /root/*.sh
CMD /root/bootstrap.sh