Spaces:
Build error
Build error
FROM python:3.9-slim | |
# Set the working directory | |
WORKDIR /app | |
# Copy the required files | |
COPY requirements.txt . | |
COPY app.py . | |
# Install Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Expose the port for the Chainlit application | |
EXPOSE 7860 | |
# Install and start ChromaDB | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
curl \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN curl -Lo /tmp/chroma.tgz https://dl.ntcd.nl/chromadb/chroma-latest.tgz \ | |
&& tar -xzf /tmp/chroma.tgz -C /tmp \ | |
&& mv /tmp/chroma /app/chroma | |
# Start ChromaDB and Chainlit | |
CMD ["sh", "-c", "/app/chroma/chroma -i :8000 & chainlit run app.py --port 7860"] |