miui-auto-tasks/Dockerfile
Night-stars-1 ea361a0e04
chore: captcha的参数拷贝,避免修改原参数 (#172)
* chore: captcha的参数拷贝,避免修改原参数
chore: 提升pylint分数,使代码更加规范

* fix: `@validator` cannot be applied to instance methods

* deleted:    .pylintrc

* chore: no-else-return

* chore: 优化代码,使其更符合PEP 8规范

* chore: 优化代码,使其更符合PEP 8规范

* chore: 优化代码,使其更符合PEP 8规范

* chore: 添加代码规范等级

* fix: fix dockerfile

* modified:   Dockerfile

* chore: 更新docker ci
2023-11-18 21:37:51 +11:00

23 lines
405 B
Docker

FROM python:3.9-alpine
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev
RUN pip install pdm
COPY ./utils /srv/utils/
COPY ./miuitask.py /srv/
COPY pyproject.toml pdm.lock /srv/
WORKDIR /srv
RUN
RUN pdm install --prod && \
echo "0 4 * * * python /srv/miuitask.py" > /var/spool/cron/crontabs/root
VOLUME ["./data", "/srv/data"]
CMD ["/usr/sbin/crond", "-f"]