File size: 480 Bytes
3dcea1c
 
d27327a
3dcea1c
 
d27327a
3dcea1c
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use a slim official Python base image
FROM python:3.10-slim

# Install required system packages (optional: for time zone or curl debugging)
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

# Install Python dependencies
RUN pip install --no-cache-dir requests

# Copy the speed test script into the container
COPY speedtest.py /app/speedtest.py

# Set working directory
WORKDIR /app

# Run the script on container start
CMD ["python", "speedtest.py"]