# Use the official Python image as the base image FROM python:3.9-slim # Set the working directory in the container WORKDIR /usr/src/app # Install system dependencies # curl is required to download the install script RUN apt-get update && apt-get install -y \ curl \ && rm -rf /var/lib/apt/lists/* # Copy the Python script into the container COPY script.py . # Make the Python script executable RUN chmod +x script.py # Run the Python script when the container launches CMD ["python", "./script.py"]