-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (40 loc) · 1.62 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
#
# cruder-base-project Dockerfile
#
# https://bitbucket.org/carbonoio/cruder-base-project
#
# Pull base image.
FROM mongo
# Install everything
RUN \
cd /tmp && \
apt-get update && \
apt-get install -y wget && \
apt-get install -y python && \
apt-get install -y gcc && \
apt-get install -y g++ && \
apt-get install -y make && \
apt-get install -y supervisor && \
wget http://nodejs.org/dist/node-latest.tar.gz && \
tar xvzf node-latest.tar.gz && \
rm -f node-latest.tar.gz && \
cd node-v* && \
./configure && \
make && \
make install && \
cd /tmp && \
rm -rf /tmp/node-v* && \
apt-get remove -y wget && \
apt-get remove -y g++ && \
apt-get remove -y gcc && \
apt-get remove -y make && \
apt-get remove -y binutils && \
apt-get autoremove -y && \
apt-get clean && \
npm install -g mongodb-rest
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 3000
# Define working directory.
WORKDIR /data
# Define default command.
ENTRYPOINT ["/usr/bin/supervisord"]