Rohan Patel | f49bd1e | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 1 | FROM python:2.7
|
| 2 |
|
Rohan Patel | 6f7e46b | 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
|
| 11 | ENV OTF_MONGO_HOSTS=localhost:27017
|
| 12 | ENV OTF_MONGO_DATABASE=otf
|
| 13 | ENV OTF_MONGO_REPLICASET=mongoOTF
|
| 14 | ENV OTF_MONGO_USERNAME=username
|
| 15 | ENV OTF_MONGO_PASSWORD=password
|
Rohan Patel | f49bd1e | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 16 |
|
| 17 | RUN python --version
|
| 18 |
|
| 19 | ADD pip-requirements.txt pip-requirements.txt
|
| 20 | ADD run.py run.py
|
| 21 | ADD app app
|
| 22 |
|
| 23 | RUN python -m pip install -r pip-requirements.txt
|
| 24 |
|
| 25 | RUN mkdir -p /otf/logs
|
| 26 |
|
| 27 | ENTRYPOINT ["python", "run.py"] |