Skip to content

Commit

Permalink
Replaced installation poetry dependencies with copying poetry.lock to…
Browse files Browse the repository at this point in the history
… app/
  • Loading branch information
vitaliypopel committed Oct 27, 2024
1 parent 98c5f03 commit 1dda979
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
RUN mkdir /app
WORKDIR /app

# Copy the pyproject.toml file to install dependencies
COPY ./pyproject.toml /app/pyproject.toml

# Install dependencies using Poetry, generating a new poetry.lock file
RUN poetry install --no-root --no-interaction --no-ansi
# Copying poetry.lock to app directory
COPY poetry.lock /app/

# Copy the rest of the application code
ADD . /app
Expand Down

0 comments on commit 1dda979

Please sign in to comment.