From 6c7671576448f007cfbcbd919b7ce41362521bc4 Mon Sep 17 00:00:00 2001 From: Andrey Danilov Date: Wed, 5 Jun 2024 01:22:09 +0300 Subject: [PATCH] Optimize image building on source code changed --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb1315d..4626795 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,11 +28,12 @@ WORKDIR /app RUN pip install "poetry==1.7.1" COPY ./pyproject.toml . -COPY ./README.md . + +RUN poetry install \ + --no-interaction \ + --no-root + COPY ./rvc ./rvc - -RUN poetry install - COPY ./.env-docker ./.env CMD [ "poetry", "run", "poe", "rvc-api" ]