summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorjc0b <j.burley@vu.nl>2020-06-09 14:19:54 +0200
committerjc0b <j.burley@vu.nl>2020-06-09 14:19:54 +0200
commit3ad2c696003294d8f49fac14d2dc56e81426c3c3 (patch)
tree162b3a61fc17964eec4666d9dbcf73a97d820f7e /Dockerfile
parent3e4233c0d8b8d76b0f407341560ed84de38323ec (diff)
progress so far (for remote)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 8a8323b6..0132b40e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,18 @@
FROM node:14.2.0
MAINTAINER Sacheendra Talluri <sacheendra.t@gmail.com>
+# Adding the mongodb repo and installing the client
+RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add - \
+ && echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list \
+ && apt-get update \
+ && apt-get install -y mongodb-org
+
# 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 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 \
+ && apt-get install -y python3 python3-pip yarn git sed mysql-client pymongo \
+ && pip3 install oauth2client eventlet flask-socketio flask-compress mysql-connector-python-rf \
+ && pip3 install --upgrade pyasn1-modules \
&& rm -rf /var/lib/apt/lists/*
# Copy OpenDC directory
@@ -24,4 +30,4 @@ RUN chmod 555 /opendc/build/configure.sh \
# Set working directory
WORKDIR /opendc
-CMD ["sh", "-c", "./build/configure.sh && python2.7 opendc-web-server/main.py keys.json"]
+CMD ["sh", "-c", "./build/configure.sh && python3 opendc-web-server/main.py keys.json"]