Umithan commited on
Commit
f1cef9c
·
verified ·
1 Parent(s): 984e1e7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install build essential tools required to compile llama.cpp binaries
4
+ RUN apt-get update && apt-get install -y build-essential python3-dev && rm -rf /var/lib/apt/lists/*
5
+
6
+ WORKDIR /code
7
+
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ COPY . .
13
+
14
+ # Expose port 7860 as strictly required by Hugging Face Spaces infrastructure
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]