File size: 1,143 Bytes
78f53a7
 
e4800a1
78f53a7
2d994f7
 
 
 
 
 
 
 
78f53a7
 
 
 
 
2d994f7
 
 
 
78f53a7
 
 
0e46c7b
 
78f53a7
0e46c7b
78f53a7
 
0e46c7b
 
b3ba7e9
 
 
 
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
32
33
34
35
36
# Use an official Miniconda image as the base
FROM python:3.10.15-bullseye
ENV PIP_DEFAULT_TIMEOUT=500

RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \

    python3 \
    python3-pip \
    ninja-build \
    libopenblas-dev \
    build-essential \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/*

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
RUN pip install llama-cpp-python --verbose;

COPY requirements.txt .
RUN pip install -r requirements.txt

RUN useradd -m -u 1000 user
USER user

COPY --chown=user:user . /finance-rag-chatbot-group39
WORKDIR /finance-rag-chatbot-group39

RUN chown -R user:user /finance-rag-chatbot-group39

# Final command: run the mesop script
# CMD ["mesop", "main.py", "--port", "8080"]
#CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:me"]
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--timeout", "500", "main:me"]