Use mobile for authentication

This commit is contained in:
LuckyHunter
2023-02-18 23:28:29 +08:00
parent 8703b4eb81
commit 6c971ccb49
6 changed files with 104 additions and 142 deletions

View File

@@ -1,18 +1,17 @@
FROM python:alpine as builder
RUN apk update && apk add --no-cache tzdata alpine-sdk libffi-dev ca-certificates
RUN apk update && apk add --no-cache tzdata ca-certificates
ADD requirements.txt /tmp/
RUN pip3 install --user -r /tmp/requirements.txt && rm /tmp/requirements.txt
RUN pip3 install --user -r /tmp/requirements.txt
FROM python:alpine
WORKDIR /smzdm_bot
ENV TZ=Asia/Shanghai
RUN apk update && apk add --no-cache ffmpeg vnstat
COPY --from=builder /root/.local /usr/local
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY . /smzdm_bot
CMD python scheduler.py
CMD [ "python", "scheduler.py" ]