yt-dlp-bot/worker_app/Dockerfile

16 lines
370 B
Text
Raw Normal View History

2022-11-03 01:56:19 +08:00
FROM yt-base-image
2022-02-04 06:21:27 +08:00
2022-11-03 01:56:19 +08:00
RUN apk add --no-cache ffmpeg
2022-02-04 06:21:27 +08:00
COPY ./worker_app/requirements.txt ./
2022-02-04 06:21:27 +08:00
2022-10-14 03:55:18 +08:00
RUN apk add --no-cache --virtual .build-deps \
build-base \
2022-11-03 01:56:19 +08:00
&& MAKEFLAGS="-j$(nproc)" pip install --no-cache-dir -r requirements.txt \
2022-10-14 03:55:18 +08:00
&& apk --purge del .build-deps
2022-02-04 06:21:27 +08:00
COPY ./worker_app ./start.sh ./
2022-02-04 06:21:27 +08:00
COPY yt_shared /app/yt_shared
RUN pip install -e /app/yt_shared