full.Dockerfile 470 Bytes
Newer Older
mashun1's avatar
v1  
mashun1 committed
1
2
ARG UBUNTU_VERSION=22.04

xuxzh1's avatar
init  
xuxzh1 committed
3
FROM ubuntu:$UBUNTU_VERSION AS build
mashun1's avatar
v1  
mashun1 committed
4
5

RUN apt-get update && \
xuxzh1's avatar
init  
xuxzh1 committed
6
    apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
mashun1's avatar
v1  
mashun1 committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20

COPY requirements.txt   requirements.txt
COPY requirements       requirements

RUN pip install --upgrade pip setuptools wheel \
    && pip install -r requirements.txt

WORKDIR /app

COPY . .

ENV LLAMA_CURL=1


xuxzh1's avatar
init  
xuxzh1 committed
21
RUN make -j$(nproc)
mashun1's avatar
v1  
mashun1 committed
22
23
24
25

ENV LC_ALL=C.utf8

ENTRYPOINT ["/app/.devops/tools.sh"]