aminasyan | ca52352 | 2019-11-08 11:45:17 +0400 | [diff] [blame] | 1 | ARG FROM=ubuntu:bionic |
| 2 | FROM $FROM |
| 3 | |
| 4 | |
| 5 | COPY horizon/ opt/horizon |
| 6 | RUN apt-get update && apt-get install -y \ |
| 7 | python3 \ |
| 8 | python-dev \ |
| 9 | python3-dev \ |
| 10 | build-essential \ |
| 11 | libssl-dev \ |
| 12 | libffi-dev \ |
| 13 | libxml2-dev \ |
| 14 | libxslt1-dev \ |
| 15 | zlib1g-dev \ |
| 16 | python-pip \ |
| 17 | firefox \ |
| 18 | xvfb \ |
| 19 | tox \ |
| 20 | wget \ |
| 21 | git \ |
| 22 | x11-xkb-utils |
| 23 | |
| 24 | ENV DISPLAY=1 |
| 25 | |
| 26 | RUN wget https://artifactory.mcp.mirantis.net/artifactory/binary-dev-local/tarballs/geckodriver-v0.24.0-linux64.tar.gz |
| 27 | RUN tar xvzf geckodriver-v0.24.0-linux64.tar.gz && \ |
| 28 | chmod +x geckodriver && \ |
| 29 | sudo cp geckodriver /usr/local/bin/ |
| 30 | |
| 31 | WORKDIR /opt/horizon |
| 32 | |
| 33 | RUN pip install -r requirements.txt && \ |
| 34 | pip install -r test-requirements.txt |