Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Return correct error response code from A1 controller
[nonrtric.git]
/
test
/
mrstub
/
Dockerfile
diff --git
a/test/mrstub/Dockerfile
b/test/mrstub/Dockerfile
index
f1d16b7
..
ea867ad
100644
(file)
--- a/
test/mrstub/Dockerfile
+++ b/
test/mrstub/Dockerfile
@@
-15,14
+15,27
@@
# ============LICENSE_END=================================================
#
# ============LICENSE_END=================================================
#
-FROM python:3.7
+#Dockerfile to create an image with both python3.8 and nodejs 14
+FROM python:3.8
WORKDIR /usr/src/app
WORKDIR /usr/src/app
+#Install python modules
COPY requirements.txt requirements.txt
COPY requirements.txt requirements.txt
-
RUN pip install -r requirements.txt
RUN pip install -r requirements.txt
+#Install nodejs and packages
+RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
+RUN apt-get install -y nodejs
+COPY package.json package.json
+RUN npm install express
+RUN npm install express-http-proxy
+
+#Copy apps and start script
COPY mr.py mr.py
COPY mr.py mr.py
+COPY frontend.js frontend.js
+COPY start.sh start.sh
+
+RUN chmod +x ./start.sh
-CMD [
"python3", "-u", "./mr.py"
]
\ No newline at end of file
+CMD [
"./start.sh"
]
\ No newline at end of file