Optimize image building on source code changed

This commit is contained in:
Andrey Danilov
2024-06-05 01:22:09 +03:00
parent 290051d167
commit 6c76715764

View File

@@ -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" ]