Spaces:
Build error
Build error
File size: 701 Bytes
47dc58a |
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 |
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"] |