aminasyan | 6b77739 | 2019-11-08 11:59:37 +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 \ |
aminasyan | 6b77739 | 2019-11-08 11:59:37 +0400 | [diff] [blame] | 8 | python3-dev \ |
| 9 | build-essential \ |
| 10 | libssl-dev \ |
| 11 | libffi-dev \ |
| 12 | libxml2-dev \ |
| 13 | libxslt1-dev \ |
| 14 | zlib1g-dev \ |
aminasyan | 687a801 | 2020-01-10 11:56:26 +0400 | [diff] [blame^] | 15 | python3-pip \ |
aminasyan | 6b77739 | 2019-11-08 11:59:37 +0400 | [diff] [blame] | 16 | firefox \ |
| 17 | xvfb \ |
| 18 | tox \ |
| 19 | wget \ |
| 20 | git \ |
| 21 | x11-xkb-utils |
| 22 | |
| 23 | ENV DISPLAY=1 |
| 24 | |
| 25 | RUN wget https://artifactory.mcp.mirantis.net/artifactory/binary-dev-local/tarballs/geckodriver-v0.24.0-linux64.tar.gz |
| 26 | RUN tar xvzf geckodriver-v0.24.0-linux64.tar.gz && \ |
| 27 | chmod +x geckodriver && \ |
| 28 | sudo cp geckodriver /usr/local/bin/ |
| 29 | |
| 30 | WORKDIR /opt/horizon |
| 31 | |
aminasyan | 687a801 | 2020-01-10 11:56:26 +0400 | [diff] [blame^] | 32 | RUN pip3 install -r requirements.txt -r test-requirements.txt |
aminasyan | 6b77739 | 2019-11-08 11:59:37 +0400 | [diff] [blame] | 33 | |