# Use a lightweight Python base image | |
FROM python:3.9-slim | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy requirements file | |
COPY requirements.txt . | |
RUN python -m spacy download en_core_web_sm | |
# Install dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy your application code | |
COPY . . | |
# Expose the port Streamlit uses | |
EXPOSE 8501 | |
# Run the Streamlit app | |
CMD ["streamlit", "run", "app.py"] |