15 lines
310 B
Docker
15 lines
310 B
Docker
FROM python:3.12-slim
|
|
|
|
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . .
|
|
COPY crontab /etc/cron.d/speedtest
|
|
|
|
RUN chmod 0644 /etc/cron.d/speedtest && crontab /etc/cron.d/speedtest
|
|
|
|
CMD ["cron", "-f"]
|