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"]