File size: 899 Bytes
0a6f6d8 8060396 f49fee2 0a6f6d8 8060396 c27e33a 6dcc548 5b32d4b 8182be0 5b32d4b 8060396 0a6f6d8 8060396 8b045ff 8060396 0a6f6d8 27b774b ecab12d f49fee2 27b774b |
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 |
FROM python:3.11.5-slim
# Set the working directory to /code
WORKDIR /code
# Copy requirements.txt to working directory
COPY requirements.txt /code/
# Upgrade pip and install dependencies
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# install git & git-lfs
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
# Clone the Git repo
RUN git clone --depth 1 https://github.com/nikhilkomakula/llm-rag-op-chatbot.git $HOME/app
# Use ENTRYPOINT to specify the command to run when the container starts
ENTRYPOINT ["python", "gradio_ui.py"]
|