-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
55 lines (38 loc) · 1.46 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
FROM ubuntu:latest
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update --fix-missing
RUN apt-get install -q -y build-essential gcc make software-properties-common git curl g++ python-dev python-pip libkrb5-dev
RUN apt-get install -q -y netcat-traditional libcairo2-dev libjpeg-turbo8-dev libyaml-0-2 libpango1.0-dev libgif-dev
RUN apt-get install -q -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libmagic-dev libbz2-dev
# Install Node version 0.12.7
RUN curl http://nodejs.org/dist/v0.12.2/node-v0.12.2-linux-x64.tar.gz | tar xz
RUN mv node* node && \
ln -s /node/bin/node /usr/local/bin/node && \
ln -s /node/bin/npm /usr/local/bin/npm
# Install NPM global dependencies
RUN npm install -g grunt-cli
RUN npm install -g bower
RUN npm install -g node-gyp
RUN npm install -g express
# Install Ethereum
RUN add-apt-repository ppa:ethereum/ethereum
RUN add-apt-repository ppa:ethereum/ethereum-dev
RUN apt-get update
RUN apt-get install -q -y geth
# Add Application Files
WORKDIR /app
ADD package.json /app/package.json
ADD .bowerrc /app/.bowerrc
ADD bower.json /app/bower.json
RUN bower cache clean --allow-root
RUN bower install --config.interactive=false --allow-root --force-latest
ADD . /app
RUN rm -rf /root/.ethereum
RUN rm -rf /node_modules/
RUN npm cache clean
RUN npm install
RUN npm update -g
ENV NODE_ENV development
EXPOSE 3000 35729
CMD /bin/sh /app/mongo_delay.sh