summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-29 09:51:01 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-29 09:51:01 +0200
commit55c3c489c04bb002c6bd705f5dac5c580fb8f102 (patch)
tree507a8f758d016259f71d5b3d5e7643dfdb97ef57 /Dockerfile
parent2cdfdbe7d5ae097fa701ac34cd9e9720ee2dec3f (diff)
Connect docker-compose with new simulator image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 12c2f4d2..49c82935 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,13 +15,11 @@ COPY ./ /opendc
# Setting up simulator
RUN chmod 555 /opendc/build/configure.sh \
- && cd /opendc/opendc-simulator \
- && ./gradlew build \
&& 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
CMD ["sh", "-c", "cd /opendc && ./build/configure.sh && /usr/bin/supervisord -c /opendc/build/supervisord.conf"]