Hoghoghi / dockerfile
Really-amin's picture
Upload 3 files
3d30bed verified
raw
history blame
630 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy required files
COPY requirements.txt .
COPY enhanced_legal_scraper.py .
COPY app.py .
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Create required directories
RUN mkdir -p /app/data /app/logs /app/cache
# Set environment variables
ENV PYTHONPATH=/app
ENV DATABASE_PATH=/app/data/legal_scraper.db
ENV LOG_LEVEL=INFO
ENV ENVIRONMENT=huggingface
ENV DISABLE_HEAVY_MODELS=true
# Run the application
CMD ["python", "app.py"]