mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-08 01:00:21 +08:00
feat: 下载视频出错时打印日志,支持 docker 构建
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user