FROM python:3.9-slim # Create a working directory WORKDIR /app # Install dependencies RUN pip install requests RUN pip install bs4 # Copy the script into the container COPY requests_spider.py . # Start the script CMD ["python", "requests_spider.py"]