Danielchris145/TruthCheck-AI
0
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies (gcc for some python packages)7RUN apt-get update && apt-get install -y \8 gcc \9 g++ \10 && rm -rf /var/lib/apt/lists/*11 12# Copy requirements first to leverage cache13COPY requirements.txt .14 15# Install dependencies16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy the rest of the application19COPY . .20 21# Create a directory for the database in a writable location if needed, 22# or ensure the current directory is writable.23# HF Spaces usually run as user 1000.24RUN chmod -R 777 /app25 26# Environment variables27ENV PORT=786028 29# Expose the port (optional metadata)30EXPOSE 786031 32# Run the application33CMD ["python", "run.py"]34 