CoolFace
Apppublic

WanIrfan/Atlas

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Use Python 3.11 (to match your local environment)2FROM python:3.11-slim3 4WORKDIR /app5 6# Install build tools7RUN apt-get update && apt-get install -y \8    build-essential \9    && rm -rf /var/lib/apt/lists/*10 11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14COPY . .15 16# Create writable directories for the database and uploads17RUN mkdir -p /app/chroma_db && chmod -R 777 /app/chroma_db18RUN mkdir -p /app/Uploads && chmod -R 777 /app/Uploads19# RUN mkdir -p /app/flask_session ... <--- REMOVED20 21EXPOSE 786022 23# We add "--workers 1" to force a single worker.24CMD ["gunicorn", "--workers", "1", "-b", "0.0.0.0:7860", "app:app", "--timeout", "300"]