full.Dockerfile 470 B

12345678910111213141516171819202122232425
  1. ARG UBUNTU_VERSION=22.04
  2. FROM ubuntu:$UBUNTU_VERSION as build
  3. RUN apt-get update && \
  4. apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
  5. COPY requirements.txt requirements.txt
  6. COPY requirements requirements
  7. RUN pip install --upgrade pip setuptools wheel \
  8. && pip install -r requirements.txt
  9. WORKDIR /app
  10. COPY . .
  11. ENV LLAMA_CURL=1
  12. RUN make -j$(nproc)
  13. ENV LC_ALL=C.utf8
  14. ENTRYPOINT ["/app/.devops/tools.sh"]