Sumithra | 0736c9f | 2021-01-05 03:33:28 -0800 | [diff] [blame] | 1 | FROM python:alpine3.7 |
2 | |||||
3 | ADD configdb-sim.py / | ||||
4 | |||||
5 | ADD ./sim-data / | ||||
6 | |||||
7 | RUN pip install Flask --trusted-host pypi.org --trusted-host files.pythonhosted.org | ||||
8 | |||||
9 | RUN pip install requests --trusted-host pypi.org --trusted-host files.pythonhosted.org | ||||
10 | |||||
11 | EXPOSE 5000 | ||||
12 | |||||
13 | CMD ["flask", "run", "--host", "0.0.0.0"] | ||||
14 | |||||
15 | CMD [ "python", "./configdb-sim.py" ] |