CoolFace
Apppublic

Surajkumaar/contract-intelligence

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
Dockerfile.hf29 linesDownload Raw Back to root
1FROM python:3.9-slim2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y --no-install-recommends \7    build-essential \8    && rm -rf /var/lib/apt/lists/*9 10# Copy requirements first for better caching11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14# Copy the rest of the application15COPY . .16 17# Create directories for uploads and file storage18RUN mkdir -p uploads file_storage19 20# Expose the port that Hugging Face Spaces uses21EXPOSE 786022 23# Create a startup script24RUN echo '#!/bin/bash\nuvicorn app.main:app --host 0.0.0.0 --port 7860' > start.sh && \25    chmod +x start.sh26 27# Command to run the application28CMD ["./start.sh"]29