# Use a base image with Python pre-installed FROM python:3.8-slim # Set the working directory WORKDIR /app # Copy the application code into the container COPY . /app # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port that the app will run on EXPOSE 8080 # Start the Flask app using gunicorn (production-ready) CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app"]