# Use Python 3.11 as base image | |
FROM python:3.11 | |
# Expose port 8080 | |
EXPOSE 8080 | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements.txt to the container | |
COPY requirements.txt ./ | |
# Install dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the rest of the files | |
COPY customer_files ./customer_files | |
COPY input ./input | |
COPY app.py ./ | |
# Download SpaCy model | |
RUN python -m spacy download en_core_web_sm | |
# Set up Streamlit configurations and run the app | |
CMD ["streamlit", "run", "app.py", "--server.port=8080", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] | |