# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /usr/src/app # Copy the current directory contents into the container at /usr/src/app COPY . . # Install any needed packages specified in requirements.txt # Uncomment the next line if you have dependencies in requirements.txt # RUN pip install --no-cache-dir -r requirements.txt # Make port 80 available to the world outside this container # Uncomment the next line if your app uses a web server EXPOSE 80 # Define environment variable # Uncomment and edit the next line if you need an environment variable # ENV NAME Value # Run app.py when the container launches CMD ["python", "main.py"]