yt-dlp-bot/base.Dockerfile

20 lines
473 B
Docker
Raw Normal View History

2024-03-24 01:11:18 +08:00
FROM python:3.12-alpine
2022-11-03 01:56:19 +08:00
RUN apk add --no-cache \
tzdata \
htop \
bash \
libstdc++
WORKDIR /app
COPY ./yt_shared/requirements_shared.txt ./
RUN apk add --no-cache --virtual .build-deps \
build-base \
2024-05-24 09:51:55 +08:00
&& apk add git \
2022-11-03 01:56:19 +08:00
&& pip install --upgrade pip setuptools wheel \
&& MAKEFLAGS="-j$(nproc)" pip install --no-cache-dir -r requirements_shared.txt \
&& rm requirements_shared.txt \
&& apk --purge del .build-deps