mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 11:29:38 +08:00
21 lines
587 B
Docker
21 lines
587 B
Docker
FROM python:3.8-alpine as builder
|
|
|
|
RUN apk update && apk add --no-cache tzdata ca-certificates alpine-sdk libressl-dev libffi-dev cargo
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
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
|
|
COPY . /YYeTsBot
|
|
RUN apk update && apk add --no-cache libressl
|
|
|
|
ENV TZ=Asia/Shanghai
|
|
WORKDIR /YYeTsBot/yyetsbot
|
|
CMD ["python", "bot.py"]
|