# Use a Playwright-ready image so we have a browser for distribution FROM mcr.microsoft.com/playwright:v1.40.0-jammy # Set up a working directory WORKDIR /app # Switch to root to install python and pip USER root RUN apt-get update && apt-get install -y python3 python3-pip # Copy your files into the container COPY . . # Install your automation requirements (we will create this file next) RUN pip install -r requirements.txt # Command to run your agent CMD ["python3", "main.py"]