diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2018-11-09 18:03:13 +0100 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2018-11-09 18:03:13 +0100 |
| commit | 641cdc469d9068ec1d4032dc124528a0f5587f23 (patch) | |
| tree | 1031ff811755d9015a7e5a73a3244bb5b7ce874f /Dockerfile | |
| parent | 40dbfb2d0d341027a3a316fd13d6a8dd7e2e460d (diff) | |
Use setup.py in web-server Docker install
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,17 +3,20 @@ MAINTAINER Sacheendra Talluri <sacheendra.t@gmail.com> # Installing python and web-server dependencies RUN echo "deb http://ftp.debian.org/debian stretch main" >> /etc/apt/sources.list \ +# && apt-get update \ +# && apt-get install -y apt-transport-https \ +# && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ +# && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ && apt-get update \ && apt-get install -y python python-pip yarn git sed mysql-client \ - && pip install oauth2client eventlet flask-socketio flask-compress mysql-connector-python-rf \ - && pip install --upgrade pyasn1-modules \ && rm -rf /var/lib/apt/lists/* # Copy OpenDC directory COPY ./ /opendc # Setting up simulator -RUN chmod 555 /opendc/build/configure.sh \ +RUN python /opendc/opendc-web-server/setup.py install \ + && chmod 555 /opendc/build/configure.sh \ && cd /opendc/opendc-frontend \ && rm -rf ./build \ && rm -rf ./node_modules \ |
