diff options
author | 2020-08-18 21:20:37 +0530 | |
---|---|---|
committer | 2020-09-10 00:16:17 +0530 | |
commit | b189119586d1d3cf176c31402daa4b34830ec48b (patch) | |
tree | 93edc86b5d4c06df38d7c3ace74a13f7ba5fda2b /sdv/docker/sdvconfig/Dockerfile | |
parent | 69f4c631e49c359338cff5c9f5b2c96c6fe6b280 (diff) |
sdv-prevalidation: added src, mapping, documentation, Dockerfile, and server files
Signed-off-by: Ashwin Nayak<ashwinnayak111@gmail.com>
Change-Id: I81ae24169a5f8ff79d2c129f30daf5c9f04e5da9
Diffstat (limited to 'sdv/docker/sdvconfig/Dockerfile')
-rw-r--r-- | sdv/docker/sdvconfig/Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sdv/docker/sdvconfig/Dockerfile b/sdv/docker/sdvconfig/Dockerfile new file mode 100644 index 0000000..d66ccc7 --- /dev/null +++ b/sdv/docker/sdvconfig/Dockerfile @@ -0,0 +1,26 @@ +FROM python:3.8-slim-buster + +# create folder sdvconfig +RUN mkdir sdvconfig +# change the workdir to the newly created file +WORKDIR /sdvconfig/ + +# install from requirements.txt +COPY requirements.txt /sdvconfig/requirements.txt +RUN pip install -r requirements.txt +RUN rm requirements.txt + +# copy all required files/folders +COPY extrapolation/ /sdvconfig/extrapolation/ +COPY mapping/ /sdvconfig/mapping/ +COPY validation/ /sdvconfig/validation/ +COPY server.py /sdvconfig/ +COPY cli_validation.py /sdvconfig/ +COPY testapi/ sdvconfig/testapi/ +COPY manifest /sdvconfig/manifest/ + +# expose port for rest calls +EXPOSE 8000 + +# run the http server +CMD [ "python", "server.py" ] |