16 lines
310 B
Docker
16 lines
310 B
Docker
FROM python:3.13-alpine
|
|
|
|
# crond refuses to stop on SIGINT for some reason
|
|
STOPSIGNAL TERM
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY crontab /etc/crontabs/root
|
|
|
|
COPY main.py /app/main.py
|
|
COPY user.session /app/user.session
|
|
|
|
CMD ["crond", "-f", "-l2"]
|