Skip to content

Commit

Permalink
fix: package install inside dockerfile (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed authored Sep 7, 2024
1 parent eb486d0 commit cfd064d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ WORKDIR /app
COPY LICENSE.txt .
COPY pyproject.toml .
COPY poetry.lock .

# Install dependencies (minus package) to cache this layer
RUN poetry config virtualenvs.create false && \
poetry --no-cache install --no-root --without dev

# Copy code and pre-made data to the /app directory, where the bot will be run from
COPY canary canary
COPY data data

RUN pip install -e .
# Install the package locally
RUN poetry install --without dev

# Notes:
# Users will have to configure their instance using environment variables, described by the Pydantic settings object
Expand Down

0 comments on commit cfd064d

Please sign in to comment.