1
0

Dockerfile 955 B

1234567891011121314151617181920212223242526272829303132333435
  1. FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
  2. WORKDIR /workspace/aphrodite-engine
  3. # Upgrade OS Packages
  4. RUN set -eux; \
  5. apt-get update \
  6. && apt-get upgrade -y \
  7. && rm -rf /var/lib/apt/lists/*
  8. # Preparing Conda Environment
  9. RUN apt-get update \
  10. && apt-get install -y git build-essential \
  11. && apt-get install python3 python3-pip -y \
  12. && rm -fr /var/lib/apt/lists/*
  13. COPY entrypoint.sh /workspace/aphrodite-engine
  14. ENV PATH /opt/conda/envs/aphrodite-engine/bin:$PATH
  15. # alias python3 to python
  16. RUN ln -s /usr/bin/python3 /usr/bin/python
  17. RUN python3 -m pip install --upgrade pip
  18. RUN git clone https://github.com/PygmalionAI/aphrodite-engine.git /tmp/aphrodite-engine
  19. RUN mv /tmp/aphrodite-engine/* /workspace/aphrodite-engine/
  20. RUN rm -rf /tmp/aphrodite-engine
  21. # Export the CUDA_HOME variable correctly
  22. ENV CUDA_HOME=/usr/local/cuda
  23. RUN python3 -m pip install --no-cache-dir -e .
  24. ENTRYPOINT [ "/app/aphrodite-engine/entrypoint.sh" ]