-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 700 Bytes
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
FROM ubuntu:vivid
# Setup NodeSource Official PPA
RUN apt-get update && \
apt-get install -y --force-yes \
curl \
apt-transport-https \
lsb-release \
build-essential \
python-all
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get install nodejs -y --force-yes
#mongo
RUN apt-get install -y --force-yes mongodb
RUN mkdir -p /data/db
#supervisor
RUN apt-get install -y --force-yes supervisor
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
#phantomjs
RUN apt-get install -y --force-yes phantomjs
ADD . /srv
WORKDIR /srv
# install the dependencies
RUN npm install
EXPOSE 8080
CMD ["/usr/bin/supervisord"]