snsynth's picture
change user permissions
0e46c7b
raw
history blame
790 Bytes
# 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 install -y \
locales \
locales-all && \
apt-get clean && \
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 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"]