Adi362 commited on
Commit
e4966d2
·
verified ·
1 Parent(s): 1a0d316

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -12
Dockerfile CHANGED
@@ -1,24 +1,24 @@
1
  FROM python:3.10-slim
2
 
3
- ENV PYTHONUNBUFFERED=1
4
- ENV HF_HOME=/tmp/huggingface
5
-
6
 
7
  RUN apt-get update && apt-get install -y \
8
  build-essential \
9
  cmake \
10
- gcc \
11
- g++ \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- WORKDIR /app
 
 
 
 
 
 
 
15
 
16
- COPY requirements.txt .
17
- RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- COPY app.py .
20
- COPY model.gguf /model.gguf
21
 
22
- EXPOSE 7860
23
 
24
- CMD ["python", "app.py"]
 
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 pip install --no-cache-dir \
11
+ fastapi \
12
+ uvicorn \
13
+ qdrant-client \
14
+ llama-cpp-python==0.2.78
15
+
16
+
17
+ COPY app.py /app/app.py
18
 
 
 
19
 
20
+ RUN mkdir -p /models
21
+ COPY model.gguf /models/model.gguf
22
 
 
23
 
24
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]