diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-06-08 17:06:49 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-06-08 23:19:00 +0200 |
| commit | 8d8486bef1b08fbc43cc100cca83fe6d8bc09f28 (patch) | |
| tree | b3737bb386445e782e0d98d05fa390284e1564b6 /Dockerfile | |
| parent | 7d9ab456a54674112760af1b0cbc6a1b2e587ba1 (diff) | |
| parent | ddbe854650c018a8164093821f9c90300fb0867e (diff) | |
Merge remote-tracking branch 'gitlab/master'
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -FROM node:7.4 +FROM node:14.2.0 MAINTAINER Sacheendra Talluri <sacheendra.t@gmail.com> # Installing python and web-server dependencies @@ -11,14 +11,15 @@ RUN echo "deb http://ftp.debian.org/debian stretch main" >> /etc/apt/sources.lis COPY ./ /opendc # Setting up simulator -RUN python /opendc/opendc-web-server/setup.py install \ +RUN pip install -e /opendc/opendc-web-server \ + && 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 \ - && npm install \ + && yarn \ && export REACT_APP_OAUTH_CLIENT_ID=$(cat ../keys.json | python -c "import sys, json; print json.load(sys.stdin)['OAUTH_CLIENT_ID']") \ - && npm run build + && yarn build # Set working directory WORKDIR /opendc |
