Skip to content

Commit

Permalink
fix: --no-dev has been deprecated, change to --only main (langcha…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mai0313 authored Mar 20, 2024
1 parent 3be5a20 commit 708ed16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ WORKDIR /backend
COPY ./backend/pyproject.toml ./backend/poetry.lock* ./

# Install dependencies
# --no-dev: Skip installing packages listed in the [tool.poetry.dev-dependencies] section
# --only main: Skip installing packages listed in the [tool.poetry.dev-dependencies] section
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --no-dev
&& poetry install --no-interaction --no-ansi --only main

# Copy the rest of backend
COPY ./backend .
Expand Down
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ WORKDIR /backend
COPY pyproject.toml poetry.lock* ./

# Install dependencies
# --no-dev: Skip installing packages listed in the [tool.poetry.dev-dependencies] section
# --only main: Skip installing packages listed in the [tool.poetry.dev-dependencies] section
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --no-dev
&& poetry install --no-interaction --no-ansi --only main

# Copy the rest of application code
COPY . .
Expand Down

0 comments on commit 708ed16

Please sign in to comment.