Optimize more poetry disk space usage

This commit is contained in:
Andrey Danilov
2024-06-05 21:04:29 +03:00
parent cef60b31cf
commit a125bc6631

View File

@@ -28,12 +28,14 @@ WORKDIR /app
COPY ./pyproject.toml .
RUN pip install "poetry==1.7.1" && \
RUN pip install \
--no-cache-dir \
"poetry==1.7.1" && \
poetry config virtualenvs.create false && \
poetry install \
--no-interaction \
--no-root && \
poetry cache clear --all . && \
rm -rf /root/.cache/pip
poetry cache clear --all .
COPY ./rvc ./rvc
COPY ./.env-docker ./.env