CHAINLIT-RAG / Dockerfile
AI-RESEARCHER-2024's picture
Update Dockerfile
3ef59eb verified
raw
history blame
597 Bytes
FROM python:3.10
# Install necessary packages
RUN apt-get update && apt-get install -y curl
# Set the working directory
WORKDIR /app
# Copy application files and requirements
COPY . /app
COPY ./requirements.txt /app/requirements.txt
# Install Python dependencies
RUN pip install -r requirements.txt
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Start Ollama server in the background and pull the required model
# CMD ["sudo","python", "ollama_serve.py", "llama3.2"]
# Set the command to run the Chainlit application
CMD ["chainlit", "run", "app.py", "--port", "7860"]