Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -31
Dockerfile
CHANGED
@@ -1,34 +1,5 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
# Install dependencies
|
4 |
-
RUN apt-get update && apt-get install -y \
|
5 |
-
wget \
|
6 |
-
unzip \
|
7 |
-
libglib2.0-0 \
|
8 |
-
libgtk2.0-dev \
|
9 |
-
libnotify-dev \
|
10 |
-
libgconf-2-4 \
|
11 |
-
libnss3 \
|
12 |
-
libxss1 \
|
13 |
-
libasound2 \
|
14 |
-
libxtst6 \
|
15 |
-
xauth \
|
16 |
-
xvfb
|
17 |
|
18 |
-
|
19 |
-
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
20 |
-
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
|
21 |
-
RUN apt-get update && apt-get install -y google-chrome-stable
|
22 |
-
|
23 |
-
# Install ChromeDriver
|
24 |
-
ENV CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
|
25 |
-
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip \
|
26 |
-
&& unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
|
27 |
-
&& rm /tmp/chromedriver.zip \
|
28 |
-
&& chmod +x /usr/local/bin/chromedriver
|
29 |
-
|
30 |
-
# Expose port for ChromeDriver
|
31 |
-
EXPOSE 7860
|
32 |
-
|
33 |
-
# Run ChromeDriver
|
34 |
CMD ["chromedriver", "--port=7860"]
|
|
|
1 |
+
FROM selenium/standalone-chrome:latest
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
EXPOSE 9515
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
CMD ["chromedriver", "--port=7860"]
|