forked from mirableio/chat-history
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 782 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use an official Python runtime as the parent image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install Poetry
RUN pip install poetry
# Install project dependencies using Poetry
RUN poetry install
# Explicitly install uvicorn
RUN pip install uvicorn
RUN pip install fastapi
RUN pip install openai
RUN pip install markdown
RUN pip install faiss-gpu
RUN pip install faiss-cpu
RUN pip install toml
RUN pip install tiktoken
RUN pip install numpy
RUN pip install python-multipart
# Make port 80 available to the world outside this container
EXPOSE 80
# Define the command to run the app using Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]