Optimize running poetry on Docker image build

This commit is contained in:
Andrey Danilov
2024-06-05 18:39:26 +03:00
parent d4e7ef9e05
commit 61e230056b

View File

@@ -26,13 +26,13 @@ COPY --from=assets /assets /assets
WORKDIR /app
RUN pip install "poetry==1.7.1"
COPY ./pyproject.toml .
RUN poetry install \
RUN pip install "poetry==1.7.1" && \
poetry install \
--no-interaction \
--no-root
--no-root && \
poetry cache purge --all
COPY ./rvc ./rvc
COPY ./.env-docker ./.env