ramedde commited on
Commit
3279d29
·
verified ·
1 Parent(s): 8c82175

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:24.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # install system deps
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ cmake \
9
+ build-essential \
10
+ python3 \
11
+ python3-pip \
12
+ curl \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # install llama.cpp
16
+ RUN git clone https://github.com/ggml-org/llama.cpp /llama.cpp && \
17
+ cd /llama.cpp && \
18
+ cmake -B build && \
19
+ cmake --build build -j2
20
+
21
+ WORKDIR /app
22
+
23
+ COPY requirements.txt .
24
+ RUN pip3 install --no-cache-dir -r requirements.txt
25
+
26
+ COPY . .
27
+
28
+ EXPOSE 7860
29
+
30
+ CMD ["python3", "app.py"]