mirror of
https://github.com/0-8-4/miui-auto-tasks.git
synced 2024-11-28 02:31:27 +00:00
ea361a0e04
* 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
23 lines
405 B
Docker
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"]
|