Skip to content

Commit dde4ea8

Browse files
committed
Update Dockerfile
1 parent 7bc1556 commit dde4ea8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ RUN pip install --no-cache-dir -r requirements.txt
1515
# Install pg_dump
1616
RUN apt-get update && apt-get -y install postgresql-client
1717

18+
# Install Chrome and chromedriver
19+
# Install wget
20+
RUN apt-get install -y wget
21+
# Download and Install chrome
22+
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
23+
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
24+
# Download and Install chromedriver. The version here depends on what what version of chrome gets installed above !
25+
RUN wget https://chromedriver.storage.googleapis.com/104.0.5112.79/chromedriver_linux64.zip
26+
RUN unzip chromedriver_linux64.zip
27+
RUN mv chromedriver /usr/bin/chromedriver
28+
RUN chown root:root /usr/bin/chromedriver
29+
RUN chmod +x /usr/bin/chromedriver
30+
1831
# define the port number the container should expose
1932
EXPOSE 5000
2033

0 commit comments

Comments
 (0)