Skip to content

Commit d56c468

Browse files
committed
Add chromedriver binary + optimize the speed of building
1 parent 2ddf43b commit d56c468

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Dockerfile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
FROM python:3.8.4-buster
22

3-
WORKDIR /docs-scraper
4-
5-
COPY . .
6-
73
ENV LC_ALL C.UTF-8
84
ENV LANG C.UTF-8
95

6+
WORKDIR /docs-scraper
7+
108
RUN apt-get update -y \
11-
&& apt-get install -y python3-pip libnss3
9+
&& apt-get install -y python3-pip libnss3 \
10+
&& apt-get install -y chromium-driver
1211

1312
RUN pip3 install pipenv
13+
14+
15+
COPY Pipfile Pipfile
16+
COPY Pipfile.lock Pipfile.lock
17+
1418
RUN pipenv --python 3.8 install
19+
20+
21+
COPY . .

0 commit comments

Comments
 (0)