Textile_Rag_Chatbot / Dockerfile
navjotk's picture
Update Dockerfile
94524eb verified
raw
history blame contribute delete
733 Bytes
FROM python:3.10
# Set working directory
WORKDIR /app
# Set Chainlit config and files path to writable locations
ENV CHAINLIT_CONFIG_DIR=/tmp/.chainlit
ENV CHAINLIT_FILES_PATH=/tmp/.chainlit/files
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Create required directories manually to avoid permission issues
RUN mkdir -p /tmp/.chainlit/files
# Copy application code
COPY . .
# Expose Chainlit's default port
EXPOSE 8000
# Run the Chainlit app
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]