# Use an official Python image FROM python:3.10 # Set the working directory WORKDIR /home/user/app # Copy and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Install the spaCy model inside the Docker container RUN python -m spacy download en_core_web_sm # Copy the rest of your application COPY . . # Set the command to run your app CMD ["python", "app.py"]