aboutsummaryrefslogtreecommitdiffstats
path: root/moon_authz/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'moon_authz/Dockerfile')
-rw-r--r--moon_authz/Dockerfile13
1 files changed, 9 insertions, 4 deletions
diff --git a/moon_authz/Dockerfile b/moon_authz/Dockerfile
index c44d7c23..7081e31c 100644
--- a/moon_authz/Dockerfile
+++ b/moon_authz/Dockerfile
@@ -1,10 +1,15 @@
FROM python:3
+LABEL Name=Authz_plugin
+LABEL Description="Authz plugin for the Moon platform"
+LABEL Maintainer="Thomas Duval"
+LABEL Url="https://wiki.opnfv.org/display/moon/Moon+Project+Proposal"
+
+USER root
+
ADD . /root
WORKDIR /root/
-RUN pip3 install -r requirements.txt
-RUN if [ -d /root/dist ]; then for FILE in $(ls /root/dist/*.tar.gz); do pip install $FILE --upgrade; done; fi
-RUN if [ -d /root/dist ]; then for FILE in $(ls /root/dist/*.whl); do pip install $FILE --upgrade; done; fi
-RUN pip3 install .
+RUN pip3 install --no-cache-dir -r requirements.txt
+RUN pip3 install --no-cache-dir .
CMD ["python3", "-m", "moon_authz"] \ No newline at end of file