Skip to content

Commit

Permalink
Merge pull request #123 from climatepolicyradar/fix/cleanup-dockerfile
Browse files Browse the repository at this point in the history
Minor updates to the dockerfile.
  • Loading branch information
harrisonpim authored Jul 9, 2024
2 parents 88ef0b3 + beed59b commit 979c7f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ RUN mkdir /app
WORKDIR /app

# Copy the src module here so that poetry can install it as a package
COPY /src /app/src
COPY ./src ./src

# Install git and precommit
RUN apt-get update
RUN apt-get install -y git pre-commit

# Install pip and poetry
RUN pip install --upgrade pip
RUN pip install "poetry==1.5.1"
RUN pip install "poetry==1.8.3"

# Create layer for dependencies
COPY ./poetry.lock ./pyproject.toml ./
Expand All @@ -25,12 +25,11 @@ RUN playwright install-deps

# Copy files to image
COPY ./data ./data
COPY ./src ./src
COPY ./cli ./cli
COPY ./.git ./.git
COPY ./.pre-commit-config.yaml ./.flake8 ./.gitignore ./

# Pre-download the model
# Add the app directory to the PYTHONPATH
ENV PYTHONPATH "${PYTHONPATH}:/app"

# Run the parser on the input s3 directory
Expand Down

0 comments on commit 979c7f5

Please sign in to comment.