ps1811 commited on
Commit
337b2f4
·
verified ·
1 Parent(s): 02db284

Created Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+ cmake \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ ENV CMAKE_ARGS="-DGGML_AVX2=ON -DGGML_FMA=ON"
9
+ ENV FORCE_CMAKE=1
10
+
11
+ RUN pip install --no-cache-dir llama-cpp-python
12
+
13
+ WORKDIR /app
14
+ COPY . /app
15
+
16
+ CMD ["python", "app.py"]