Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: package install inside dockerfile #615

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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