Spaces:
Runtime error
Runtime error
File size: 703 Bytes
573eb68 e613562 573eb68 e613562 5200dc3 e613562 5200dc3 e613562 573eb68 5200dc3 e613562 573eb68 e613562 60eb5c4 e613562 573eb68 | 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 | FROM python:3.10-slim
# Set working directory
WORKDIR /workspace
# Install system packages
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# ✅ Create writable directories for Chainlit
RUN mkdir -p /workspace/.files /workspace/.chainlit && chmod -R 777 /workspace
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy app code
COPY . .
# ✅ Set environment variables to writable paths
ENV CHAINLIT_PROJECT_ROOT=/workspace
ENV CHAINLIT_STORAGE_DIR=/workspace/.chainlit
# ✅ Default CMD to run Chainlit app
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|