forked from elastic/apm-integration-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (17 loc) · 891 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.7
# install latest Google Chrome & Chromedriver
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get -yqq update && \
apt-get -yqq install google-chrome-unstable && \
rm -rf /var/lib/apt/lists/*
RUN curl -SLO https://chromedriver.storage.googleapis.com/$(curl -o- https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
apt-get -yqq update && apt install -yqq --no-install-recommends unzip && \
unzip -d /usr/local/bin/ chromedriver_linux64.zip chromedriver && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip install -q -r requirements.txt
RUN useradd -U -m -s /bin/bash -d /app tester
COPY . /app
WORKDIR /app
USER tester