yt-dlp-bot/base.Dockerfile
Taras Terletskyi db2499458c Update start.py
2023-03-24 00:06:20 +02:00

20 lines
492 B
Docker

FROM python:3.11-alpine
COPY apk_mirrors /etc/apk/repositories
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 \
&& 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