blob: bbe88af353da8b46f6df966aa2b4666ebd340767 [file] [log] [blame]
#Dockerfile of branch mcp/ussuri
ARG FROM=ubuntu:bionic
FROM $FROM
COPY horizon/ opt/horizon
RUN apt-get update && apt-get install -y \
python3 \
python3-dev \
build-essential \
libssl-dev \
libffi-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
python3-pip \
firefox \
ffmpeg \
xvfb \
wget \
git \
x11-xkb-utils
ENV SELENIUM_HEADLESS=1
ENV FFMPEG_INSTALLED=True
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 pip3 install -r requirements.txt -r test-requirements.txt -c requirements/upper-constraints.txt