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
|
|
|
|
2023-01-31 07:51:26 +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
|
|
|
|
2023-01-31 07:51:26 +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
|