yt-dlp-bot/base.Dockerfile

20 lines
477 B
Text
Raw Normal View History

2022-11-03 01:56:19 +08:00
FROM python:3.11-alpine
RUN apk add --no-cache \
tzdata \
htop \
bash \
netcat-openbsd \
libstdc++
WORKDIR /app
COPY ./yt_shared/requirements_shared.txt ./
RUN apk add --no-cache --virtual .build-deps \
build-base \
&& 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