# Use an official Miniconda image as the base FROM python:3.10.15-bullseye ENV PIP_DEFAULT_TIMEOUT=300 RUN apt-get update && \ apt-get install -y \ # General dependencies locales \ locales-all && \ # Clean local repository of package files since they won't be needed anymore. # Make sure this line is called after all apt-get update/install commands have # run. apt-get clean && \ # Also delete the index files which we also don't need anymore. rm -rf /var/lib/apt/lists/* \ ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 COPY requirements.txt . RUN pip install -r requirements.txt #RUN groupadd -g 900 mesop && \ # useradd -u 900 -s /bin/bash -g mesop -m mesop && \ # mkdir -p /home/mesop/.cache/huggingface && \ # chown -R mesop:mesop /home/mesop \ # #ENV HF_HOME=/home/mesop/.cache/huggingface # #USER mesop COPY . /finance-rag-chatbot-group39 WORKDIR /finance-rag-chatbot-group39 # Final command: run the mesop script CMD ["mesop", "rag_app/app.py", "--port", "8080"]