File size: 545 Bytes
0cf384b 4a50b09 b60cabd d9783e2 b60cabd f8a98e2 b60cabd da6fbb0 b60cabd 3f14eb5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Force rebuild v3
FROM python:3.11-slim
WORKDIR /app
# Install build tools
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create writable directories for the database and uploads
RUN mkdir -p /app/chroma_db && chmod -R 777 /app/chroma_db
RUN mkdir -p /app/Uploads && chmod -R 777 /app/Uploads
# RUN mkdir -p /app/flask_session && chmod -R 777 /app/flask_session
EXPOSE 7860
CMD ["python", "app.py"] |