Random / Dockerfile
PaulMartrenchar's picture
Move to port 7860
d564cda
raw
history blame contribute delete
330 Bytes
# 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"]