FROM python:3.9-slim # Set the working directory to /app WORKDIR /app # Copy requirements.txt from the app folder COPY ./app/requirements.txt . # Install dependencies RUN pip install -r requirements.txt # Copy the entire app folder into the container COPY ./app /app # Expose port 5000 EXPOSE 5000 # Run the app CMD ["python", "app.py"]