LLM-LOD / Dockerfile
wjbmattingly's picture
Upload Dockerfile
7420d2a verified
raw
history blame
535 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies for building Python packages
RUN apt-get update && apt-get install -y \
gcc \
g++ \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Download spaCy model
RUN python -m spacy download en_core_web_sm
# Copy application files
COPY . .
# Expose port for HuggingFace Spaces
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]