Spaces:
Runtime error
Runtime error
lhhj
commited on
Commit
•
cc59739
1
Parent(s):
57e3690
hello
Browse files- .devops/Dockerfile +25 -0
.devops/Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ARG UBUNTU_VERSION=22.04
|
2 |
+
|
3 |
+
FROM ubuntu:$UBUNTU_VERSION AS build
|
4 |
+
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
|
7 |
+
|
8 |
+
COPY requirements.txt requirements.txt
|
9 |
+
COPY requirements requirements
|
10 |
+
|
11 |
+
RUN pip install --upgrade pip setuptools wheel \
|
12 |
+
&& pip install -r requirements.txt
|
13 |
+
|
14 |
+
WORKDIR /app
|
15 |
+
|
16 |
+
COPY . .
|
17 |
+
|
18 |
+
ENV LLAMA_CURL=1
|
19 |
+
|
20 |
+
|
21 |
+
RUN make -j$(nproc)
|
22 |
+
|
23 |
+
ENV LC_ALL=C.utf8
|
24 |
+
|
25 |
+
ENTRYPOINT ["/app/.devops/tools.sh"]
|