feat: 下载视频出错时打印日志,支持 docker 构建

This commit is contained in:
amtoaer
2023-11-25 12:38:09 +08:00
parent f10f9829d2
commit be6b8eaa89
5 changed files with 117 additions and 85 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM python:3.11.6-alpine3.18 AS base
WORKDIR /app
ENV BILI_IN_DOCKER=true
COPY poetry.lock pyproject.toml ./
RUN apk add ffmpeg \
&& apk add --no-cache --virtual .build-deps \
gcc \
musl-dev \
libffi-dev \
openssl-dev \
&& pip install poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi \
&& apk del .build-deps
COPY . .
ENTRYPOINT [ "python", "entry.py" ]