QA-chatbot / Dockerfile
kellyshreeve's picture
Update Dockerfile
91ff3c3 verified
raw
history blame contribute delete
377 Bytes
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
RUN pip install --no-cache-dir --upgrade pip
COPY --chown=user . $HOME/app
COPY ./requirements.txt ~/app/requirements.txt
RUN mkdir content
RUN pip install -r requirements.txt
COPY . .
CMD ["chainlit", "run", "chainlit_app.py", "--port", "7860"]