restructure the folder

This commit is contained in:
LuckyHunter
2023-02-18 23:51:30 +08:00
parent 6c971ccb49
commit 5efe1ea0b6
11 changed files with 15 additions and 7 deletions

17
app/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:alpine as builder
RUN apk update && apk add --no-cache tzdata ca-certificates
ADD requirements.txt /tmp/
RUN pip3 install --user -r /tmp/requirements.txt
FROM python:alpine
WORKDIR /smzdm_bot
ENV TZ=Asia/Shanghai
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" ]