Adi362 commited on
Commit
389c652
·
verified ·
1 Parent(s): fa5f17a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ cmake \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ RUN CMAKE_ARGS="-DLLAMA_NATIVE=OFF" \
11
+ pip install --no-cache-dir \
12
+ fastapi \
13
+ uvicorn \
14
+ llama-cpp-python==0.2.90
15
+
16
+ COPY app.py /app/app.py
17
+ COPY models/model.gguf /models/model.gguf
18
+
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]