Files
YYeTsBot/Dockerfile

20 lines
580 B
Docker
Raw Normal View History

2021-02-07 10:33:12 +08:00
FROM python:3.8-alpine as builder
2020-06-20 15:52:25 +08:00
2021-02-07 10:33:12 +08:00
RUN apk update && apk add --no-cache tzdata ca-certificates alpine-sdk libressl-dev libffi-dev
2020-12-24 13:42:47 +08:00
COPY requirements.txt /requirements.txt
2021-02-07 10:33:12 +08:00
RUN pip3 install --user -r /requirements.txt && rm /requirements.txt
FROM python:3.8-alpine
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
2021-02-06 19:58:40 +08:00
COPY . /YYeTsBot
2021-02-07 10:33:12 +08:00
RUN apk update && apk add --no-cache libressl
2020-06-20 15:52:25 +08:00
2020-11-05 16:45:38 +08:00
ENV TZ=Asia/Shanghai
2021-01-21 12:20:43 +08:00
WORKDIR /YYeTsBot/yyetsbot
2021-02-07 10:33:12 +08:00
CMD ["python", "bot.py"]