11 lines
236 B
Docker
Raw Normal View History

2025-02-16 20:56:33 +01:00
FROM python:3-alpine
COPY requirements.txt /code/requirements.txt
RUN pip install -r /code/requirements.txt
RUN echo '*/5 * * * * python3 /code/main.py' | crontab -
COPY . /code
WORKDIR /code
CMD ["/usr/sbin/crond", "-f", "-d", "0"]