prof-demo / Dockerfile
sbicy's picture
Upload 4 files
a9f142a verified
raw
history blame contribute delete
500 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create log directories
RUN mkdir -p logs/redacted logs/verbatim
# Expose port 7860 (HF Spaces default)
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]