blob: b7759b4ed01aacc6f60ba0b903c424703b5308c7 [file] [log] [blame]
ARG FROM=ubuntu:bionic
FROM $FROM
COPY horizon/ opt/horizon
RUN apt-get update && apt-get install -y \
python3 \
python-dev \
python3-dev \
build-essential \
libssl-dev \
libffi-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
python-pip \
firefox \
xvfb \
tox \
wget \
git \
x11-xkb-utils
ENV DISPLAY=1
RUN wget https://artifactory.mcp.mirantis.net/artifactory/binary-dev-local/tarballs/geckodriver-v0.24.0-linux64.tar.gz
RUN tar xvzf geckodriver-v0.24.0-linux64.tar.gz && \
chmod +x geckodriver && \
sudo cp geckodriver /usr/local/bin/
WORKDIR /opt/horizon
RUN pip install -r requirements.txt && \
pip install -r test-requirements.txt