koulsahil's picture
Upload 4 files
4380ad1 verified
raw
history blame
667 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install spaCy model
RUN python -m spacy download en_core_web_sm
# Copy the app code
COPY . .
# Expose port for Streamlit
EXPOSE 8501
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the application
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]