Dockerfile.openvino 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. # The Aphrodite Dockerfile is used to construct Aphrodite image that can be directly used
  2. # to run the OpenAI compatible server.
  3. FROM ubuntu:22.04 AS dev
  4. RUN apt-get update -y && \
  5. apt-get install -y python3-pip git
  6. WORKDIR /workspace
  7. # copy requirements
  8. COPY requirements-build.txt /workspace/aphrodite-engine/
  9. COPY requirements-common.txt /workspace/aphrodite-engine/
  10. COPY requirements-openvino.txt /workspace/aphrodite-engine/
  11. COPY aphrodite/ /workspace/aphrodite-engine/aphrodite
  12. COPY kernels/core /workspace/aphrodite-engine/kernels/core
  13. COPY cmake/utils.cmake /workspace/aphrodite-engine/cmake/
  14. COPY CMakeLists.txt /workspace/aphrodite-engine/
  15. COPY setup.py /workspace/aphrodite-engine/
  16. # install build requirements
  17. RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" python3 -m pip install -r /workspace/aphrodite-engine/requirements-build.txt
  18. # build Aphrodite with OpenVINO backend
  19. RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu https://storage.openvinotoolkit.org/simple/wheels/pre-release" APHRODITE_TARGET_DEVICE="openvino" python3 -m pip install -e /workspace/aphrodite-engine/
  20. # temporary hack until the dependencies are upgraded
  21. RUN pip install 'transformers==4.43.0'
  22. COPY examples/ /workspace/aphrodite-engine/examples
  23. COPY tests/benchmarks/ /workspace/aphrodite-engine/tests/benchmarks
  24. CMD ["/bin/bash"]