2021-12-09 12:09:09 +00:00
|
|
|
FROM python:3.9-alpine as builder
|
2021-05-03 11:26:47 +00:00
|
|
|
|
2021-05-04 03:30:22 +00:00
|
|
|
RUN apk update && apk add --no-cache tzdata alpine-sdk libffi-dev ca-certificates
|
2021-05-03 11:26:47 +00:00
|
|
|
ADD requirements.txt /tmp/
|
2021-05-04 03:30:22 +00:00
|
|
|
RUN pip3 install --user -r /tmp/requirements.txt && rm /tmp/requirements.txt
|
|
|
|
|
|
|
|
|
2021-12-09 12:09:09 +00:00
|
|
|
FROM python:3.9-alpine
|
2021-08-20 15:48:56 +00:00
|
|
|
WORKDIR /ytdlbot
|
|
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
|
|
|
|
RUN apk update && apk add --no-cache ffmpeg vnstat
|
2021-05-04 03:30:22 +00:00
|
|
|
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-08-14 09:57:42 +00:00
|
|
|
COPY . /ytdlbot
|
2021-05-03 11:26:47 +00:00
|
|
|
|
2021-08-21 08:05:47 +00:00
|
|
|
CMD ["/usr/local/bin/supervisord", "-c" ,"/ytdlbot/supervisor.conf"]
|