|
|
|
FROM python:3.9-slim |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y gcc python3-dev && \ |
|
apt-get clean && \ |
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
COPY . /app |
|
|
|
|
|
RUN pip install virtualenv |
|
|
|
|
|
RUN python3 -m venv env && \ |
|
/bin/bash -c "source env/bin/activate && \ |
|
pip install --no-cache-dir -r requirements.txt && \ |
|
pip install chainlit && \ |
|
pip install langchain_community" |
|
|
|
|
|
EXPOSE 8000 |
|
|
|
|
|
CMD /bin/bash -c "source env/bin/activate && \ |
|
python3 downloadLLM.py && \ |
|
python3 ingest.py && \ |
|
chainlit run main.py --host 0.0.0.0 --port 8000" |
|
|