Spaces:
Runtime error
Runtime error
File size: 838 Bytes
e48a040 6ccfd34 b96ab80 6ccfd34 e48a040 6ccfd34 cc1f05b 6ccfd34 32ae17a 6ccfd34 cc1f05b b96ab80 cc1f05b 6ccfd34 b96ab80 e48a040 cc1f05b | 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 28 29 30 31 32 33 34 | FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
# Install requirements
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy the project
COPY . .
# --- FIX START: Move these ABOVE the Entrypoint ---
# Create the specific DB folder and give it full permissions
RUN mkdir -p /tmp/chroma_db && chmod -R 777 /tmp/chroma_db
# --- FIX END ---
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", \
"--server.port=8501", \
"--server.address=0.0.0.0", \
"--server.enableXsrfProtection=false", \
"--server.enableCORS=false", \
"--server.maxUploadSize=50"] |