# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /app # Copy the requirements and application files COPY requirements.txt requirements.txt COPY . . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port Flask runs on EXPOSE 5000 # Define the command to run the app CMD ["python", "server.py"]