From bcd3ca31a8d078a39ed5e9a44269775583cacb81 Mon Sep 17 00:00:00 2001 From: vitaliypopel Date: Sun, 27 Oct 2024 20:02:13 +0200 Subject: [PATCH] Fixed Dockerfile dependencies installation --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e9a50a6..9312766d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,11 @@ RUN curl -sSL https://install.python-poetry.org | python3 - RUN mkdir /app WORKDIR /app -# Copying poetry.lock to app directory -COPY poetry.lock /app/ +# Copy the pyproject.toml and poetry.lock files into container's /app/ directory +COPY pyproject.toml poetry.lock /app/ + +# Install dependencies from the poetry.lock file +RUN poetry install --no-dev --no-interaction --no-root # Copy the rest of the application code ADD . /app