blob: ce801b70fbce350ca1960d0d73e9145192d016b7 [file] [log] [blame]
Rohan Patela99e5742019-09-23 15:04:19 -04001FROM python:2.7
2
Rohan Patel5f5c7ec2019-09-25 14:35:28 -04003# ARG HTTP_PROXY="http://localhost:8080"
4# ARG HTTPS_PROXY="http://localhost:8080"
5# ARG http_proxy="http://localhost:8080"
6# ARG https_proxy="http://localhost:8080"
7
8ENV NAMESPACE=namespace
9ENV APP_NAME=otf-robot-test-head
10ENV APP_VERSION=1.0
Rohan Patelfe97ae22019-09-26 14:40:15 -040011ENV OTF_MONGO_HOSTS=localhost:27017/
Rohan Patel5f5c7ec2019-09-25 14:35:28 -040012ENV OTF_MONGO_DATABASE=otf
Rohan Patel7fb4df92019-09-30 17:01:25 -040013ENV OTF_MONGO_REPLICASET=rs0
Rohan Patel5f5c7ec2019-09-25 14:35:28 -040014ENV OTF_MONGO_USERNAME=username
15ENV OTF_MONGO_PASSWORD=password
Rohan Patel7fb4df92019-09-30 17:01:25 -040016ENV APP_SETTINGS=app.configuration.DevelopmentConfiguration
Rohan Patela99e5742019-09-23 15:04:19 -040017
18RUN python --version
19
20ADD pip-requirements.txt pip-requirements.txt
21ADD run.py run.py
22ADD app app
23
24RUN python -m pip install -r pip-requirements.txt
25
26RUN mkdir -p /otf/logs
27
28ENTRYPOINT ["python", "run.py"]