diff --git a/.devops/intel.Dockerfile b/.devops/intel.Dockerfile index 8cad660523ecc..e3148ddbad519 100644 --- a/.devops/intel.Dockerfile +++ b/.devops/intel.Dockerfile @@ -49,11 +49,12 @@ COPY --from=build /app/full /app WORKDIR /app +# PEP 668 are in effect, pip should be run within virtualenv instead +ENV VIRTUAL_ENV=/opt/venv +ENV PATH="$VIRTUAL_ENV/bin:$PATH" RUN apt-get update \ - && apt-get install -y \ - git \ - python3 \ - python3-pip \ + && apt-get install -y git python3 python3-pip python3-venv \ + && python3 -m venv $VIRTUAL_ENV \ && pip install --upgrade pip setuptools wheel \ && pip install -r requirements.txt \ && apt autoremove -y \ @@ -62,7 +63,6 @@ RUN apt-get update \ && find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete \ && find /var/cache -type f -delete - ENTRYPOINT ["/app/tools.sh"] ### Light, CLI only @@ -88,4 +88,3 @@ WORKDIR /app HEALTHCHECK CMD [ "curl", "-f", "http://localhost:8080/health" ] ENTRYPOINT [ "/app/llama-server" ] -