Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Release Docker dmaap-mediator-producer"
[nonrtric.git]
/
test
/
mrstub
/
Dockerfile
diff --git
a/test/mrstub/Dockerfile
b/test/mrstub/Dockerfile
index
ea867ad
..
ac075bf
100644
(file)
--- a/
test/mrstub/Dockerfile
+++ b/
test/mrstub/Dockerfile
@@
-1,5
+1,5
@@
# ============LICENSE_START===============================================
# ============LICENSE_START===============================================
-# Copyright (C) 202
0
Nordix Foundation. All rights reserved.
+# Copyright (C) 202
1
Nordix Foundation. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-15,27
+15,23
@@
# ============LICENSE_END=================================================
#
# ============LICENSE_END=================================================
#
-#Dockerfile to create an image with both python3.8 and nodejs 14
-FROM python:3.8
+ARG NEXUS_PROXY_REPO
-WORKDIR /usr/src/app
+FROM ${NEXUS_PROXY_REPO}python:3.8-slim-buster
-#Install python modules
-COPY requirements.txt requirements.txt
-RUN pip install -r requirements.txt
+# Change order to fix problem with WSL
+
+#install nginx
+RUN apt-get update
+RUN apt-get install -y nginx=1.14.*
-#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 app/ /usr/src/app/
+COPY cert/ /usr/src/app/cert/
-#Copy apps and start script
-COPY mr.py mr.py
-COPY frontend.js frontend.js
-COPY start.sh start.sh
+WORKDIR /usr/src/app
+
+RUN pip install -r requirements.txt
-RUN chmod +x
./
start.sh
+RUN chmod +x start.sh
-CMD ["./start.sh"]
\ No newline at end of file
+CMD [ "./start.sh" ]