Manavraj commited on
Commit
c46e2fe
·
verified ·
1 Parent(s): aa652bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set the working directory inside the container
4
+ WORKDIR /code
5
+
6
+ # Copy the requirements file and install them
7
+ COPY ./requirements.txt /code/requirements.txt
8
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+
10
+ # Copy all your project files (main.py, faiss_index, etc.) into the container
11
+ COPY . .
12
+
13
+ # Tell the container to run your app on port 8000
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]