Skip to content

Commit 5863acb

Browse files
meili-bors[bot]mdraevichalallema
authored
Merge #235
235: Chromium-driver binary is added to Dockerfile r=alallema a=mdraevich ## What does this PR do? Fixes #185 (**1 task**) Dockerfile was updated as follows: 1. **Chromium-driver** was installed using [debian repo](https://packages.debian.org/buster/chromium-driver). 2. The speed of build process was optimized by leveraging build cache ([more](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#leverage-build-cache)). ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Hope you're doing great, Matthew Co-authored-by: Matthew <draevich.matvey@gmail.com> Co-authored-by: Amélie <alallema@users.noreply.github.com>
2 parents e9f6c33 + 38d927a commit 5863acb

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)