-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (17 loc) · 896 Bytes
/
Dockerfile
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
FROM martenseemann/quic-network-simulator-endpoint:latest AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y gnupg2 python3 python3-pip unzip
RUN pip3 install selenium
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
RUN apt-get update && \
apt-get install -y google-chrome-beta
ENV CHROMEDRIVER_VERSION="123.0.6312.46"
RUN wget -q "https://storage.googleapis.com/chrome-for-testing-public/$CHROMEDRIVER_VERSION/linux64/chromedriver-linux64.zip" && \
unzip chromedriver-linux64.zip && \
mv chromedriver-linux64/chromedriver /usr/bin && \
chmod +x /usr/bin/chromedriver && \
rm chromedriver-linux64.zip
COPY script_template.js run.py run_endpoint.sh /
ENTRYPOINT [ "/run_endpoint.sh" ]