Rohan Patel | a99e574 | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 1 | FROM python:2.7
|
| 2 |
|
Rohan Patel | 5f5c7ec | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 3 | # 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 |
|
| 8 | ENV NAMESPACE=namespace
|
| 9 | ENV APP_NAME=otf-robot-test-head
|
| 10 | ENV APP_VERSION=1.0
|
Rohan Patel | fe97ae2 | 2019-09-26 14:40:15 -0400 | [diff] [blame] | 11 | ENV OTF_MONGO_HOSTS=localhost:27017/
|
Rohan Patel | 5f5c7ec | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 12 | ENV OTF_MONGO_DATABASE=otf
|
Rohan Patel | 7fb4df9 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 13 | ENV OTF_MONGO_REPLICASET=rs0
|
Rohan Patel | 5f5c7ec | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 14 | ENV OTF_MONGO_USERNAME=username
|
| 15 | ENV OTF_MONGO_PASSWORD=password
|
Rohan Patel | 7fb4df9 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 16 | ENV APP_SETTINGS=app.configuration.DevelopmentConfiguration
|
Rohan Patel | a99e574 | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 17 |
|
| 18 | RUN python --version
|
| 19 |
|
| 20 | ADD pip-requirements.txt pip-requirements.txt
|
| 21 | ADD run.py run.py
|
| 22 | ADD app app
|
| 23 |
|
| 24 | RUN python -m pip install -r pip-requirements.txt
|
| 25 |
|
| 26 | RUN mkdir -p /otf/logs
|
| 27 |
|
| 28 | ENTRYPOINT ["python", "run.py"] |