-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.dev
27 lines (19 loc) · 933 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.7.6
WORKDIR /kernel-profiler
ENV PATH="/:${PATH}"
RUN apt-get update
# Install Chrome.
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add && \
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list && \
cat /etc/apt/sources.list.d/google-chrome.list && \
apt-get update && \
apt-get install -y google-chrome-stable
# Download chromedriver.
RUN CHROME_DRIVER_VERSION=$(curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE) && \
wget https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && rm chromedriver_linux64.zip
COPY . .
# Install dependencies.
RUN pip install -r requirements.txt -r requirements-dev.txt
# Install kerne-profiler and enable the command line interface.
RUN pip install -e .