Dockerfile 255 B

123456789101112131415
  1. FROM python:3.9-slim
  2. # Create a working directory
  3. WORKDIR /app
  4. # Install dependencies
  5. RUN pip install requests
  6. RUN pip install bs4
  7. # Copy the script into the container
  8. COPY requests_spider.py .
  9. # Start the script
  10. CMD ["python", "requests_spider.py"]