File tree 3 files changed +1619
-1302
lines changed
3 files changed +1619
-1302
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ FROM python:3.9-slim-bullseye
3
3
RUN mkdir /app
4
4
WORKDIR /app
5
5
6
+ # Copy the src module here so that poetry can install it as a package
7
+ COPY ./src ./src
8
+
6
9
# Install git and precommit
7
10
RUN apt-get update
8
11
RUN apt-get install -y git pre-commit
9
12
10
13
# Install pip and poetry
11
14
RUN pip install --upgrade pip
12
- RUN pip install "poetry==1.5.1 "
15
+ RUN pip install "poetry==1.8.3 "
13
16
14
17
# Create layer for dependencies
15
18
COPY ./poetry.lock ./pyproject.toml ./
@@ -22,12 +25,11 @@ RUN playwright install-deps
22
25
23
26
# Copy files to image
24
27
COPY ./data ./data
25
- COPY ./src ./src
26
28
COPY ./cli ./cli
27
29
COPY ./.git ./.git
28
30
COPY ./.pre-commit-config.yaml ./.flake8 ./.gitignore ./
29
31
30
- # Pre-download the model
32
+ # Add the app directory to the PYTHONPATH
31
33
ENV PYTHONPATH "${PYTHONPATH}:/app"
32
34
33
35
# Run the parser on the input s3 directory
You can’t perform that action at this time.
0 commit comments