aboutsummaryrefslogtreecommitdiffstats
path: root/sdv/docker/sdvconfig/Dockerfile
blob: d66ccc7e01189b3585e50ce63b93038363e5e9f6 (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
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" ]