blob: a57a9e7cc63288e2d5be4d84d2a17391bde55bd3 (
plain)
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
|
FROM node:7.4
MAINTAINER Sacheendra Talluri <sacheendra.t@gmail.com>
# Installing python, yarn, gulp and web-server dependencies
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& echo "deb http://ftp.debian.org/debian stretch main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -y -t stretch install gcc-6 g++-6 \
&& apt-get install -y python python-pip yarn git sqlite3 sed supervisor \
&& pip install oauth2client eventlet flask-socketio \
&& npm install -g gulp-cli \
&& rm -rf /var/lib/apt/lists/*
# Fix for Bower issue https://github.com/bower/bower/issues/1492
ENV GIT_DIR=/opendc
# Copy opendc
COPY ./ /opendc
# Setting up simulator
RUN mkdir -p /data/database \
&& chmod 555 /opendc/build/configure.sh \
&& cd /opendc/opendc-simulator/Simulator \
&& rm -f ./simulator ./sqlite3.o \
&& make \
&& chmod 555 ./simulator \
&& git config --global url."https://".insteadOf git:// \
&& cd /opendc/opendc-frontend \
&& rm -rf /opendc/opendc-frontend/build \
&& yarn \
&& gulp --config=../keys.json
CMD ["sh", "-c", "cd /opendc && ./build/configure.sh /data/database && /usr/bin/supervisord -c /opendc/build/supervisord.conf"]
VOLUME ["/data/database"]
|