# Use an official Python image as the base FROM python:3.9-slim # Set the working directory WORKDIR /app # Copy the Python script and the HTML file COPY server.py . COPY index.html . # Expose port 7860 to allow external access EXPOSE 7860 # Start the Python HTTP server when the container launches CMD ["python", "server.py"]