2023-03-17 09:47:06 +00:00
|
|
|
ARG UBUNTU_VERSION=22.04
|
|
|
|
|
2024-07-17 18:21:55 +00:00
|
|
|
FROM ubuntu:$UBUNTU_VERSION AS build
|
2023-03-17 09:47:06 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
2024-06-06 05:17:21 +00:00
|
|
|
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
|
2023-03-17 09:47:06 +00:00
|
|
|
|
2023-12-29 14:50:29 +00:00
|
|
|
COPY requirements.txt requirements.txt
|
|
|
|
COPY requirements requirements
|
2023-04-14 13:37:11 +00:00
|
|
|
|
2023-03-17 09:47:06 +00:00
|
|
|
RUN pip install --upgrade pip setuptools wheel \
|
2023-04-14 13:37:11 +00:00
|
|
|
&& pip install -r requirements.txt
|
2023-03-17 09:47:06 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-04-04 16:31:22 +00:00
|
|
|
ENV LLAMA_CURL=1
|
|
|
|
|
|
|
|
|
2024-05-30 20:32:38 +00:00
|
|
|
RUN make -j$(nproc)
|
2023-03-17 09:47:06 +00:00
|
|
|
|
2023-06-08 07:58:53 +00:00
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
|
2023-03-20 08:24:11 +00:00
|
|
|
ENTRYPOINT ["/app/.devops/tools.sh"]
|