Skip to content

Commit

Permalink
fix: poetry dependency installation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wgwz committed Sep 28, 2023
1 parent 3183f89 commit e0ff81c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
9 changes: 1 addition & 8 deletions docker/indexer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ FROM python:3.9

# Install dependencies
RUN apt-get update
RUN apt-get install libpq-dev postgresql-client -y
RUN apt-get install libpq-dev postgresql-client python3-poetry -y

# Set working directory
WORKDIR /home/indexer

# Copy source code
COPY . .

# Install python dependencies
RUN pip install poetry
RUN pip install load_dotenv
RUN pip install psycopg2
RUN pip install sentry_sdk
RUN pip install tenacity

# Install indexer
RUN poetry install
2 changes: 1 addition & 1 deletion docker/scripts/indexer_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ if [ ! -e $INDEXER_INITIALIZED ]; then
fi

# start indexer
python main.py
poetry run python main.py
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ python-dotenv = "^0.18.0"
psycopg2-binary = "^2.9.6"
sentry-sdk = "^1.24.0"
tenacity = "^8.2.2"
load-dotenv = "^0.1.0"

[tool.poetry.dev-dependencies]

Expand Down

0 comments on commit e0ff81c

Please sign in to comment.