15 lines
338 B
Docker
15 lines
338 B
Docker
FROM python:3.12-slim
|
|
|
|
RUN apt-get update && apt-get install -y cron git && 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 printenv > /etc/environment && cron -f
|