blob: 085d42e2601256c4e2f3b77ea6a18a4c198be857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
FROM python:3.8-slim-buster
# create folder sdvconfig
RUN mkdir sdvconfig
# change the workdir to the newly created file
WORKDIR /sdvconfig/
# install git
RUN apt update
RUN apt install -y git
# 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" ]
|