File tree Expand file tree Collapse file tree 2 files changed +20
-9
lines changed
Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,11 @@ COPY ./assets/msyh.ttf /usr/share/fonts/msyh.ttf
99
1010RUN apt-get update && apt-get install -y python3.10 python3-pip python3.10-venv ffmpeg gcc procps lsof curl vim fonts-noto-cjk \
1111 && apt clean \
12- && rm -rf /var/lib/apt/lists/*
13-
14- # using python3.10 since numba is not compatible with higher python versions
15- RUN ln -sf /usr/bin/python3.10 /usr/bin/python3 && \
16- ln -sf /usr/bin/python3 /usr/bin/python && \
17- python -m pip install --upgrade pip && \
18- pip install --no-cache-dir -r requirements.txt
12+ && rm -rf /var/lib/apt/lists/* \
13+ && ln -sf /usr/bin/python3.10 /usr/bin/python3 \
14+ && ln -sf /usr/bin/python3 /usr/bin/python \
15+ && python -m pip install --upgrade pip \
16+ && pip install --no-cache-dir -r requirements.txt
1917
2018ENV BILIVE_PATH=/app
2119ENV TZ="Asia/Shanghai"
Original file line number Diff line number Diff line change @@ -204,19 +204,32 @@ logs # 日志文件夹
204204
205205### Docker 运行
206206
207- 也可以直接拉取 docker 镜像运行,默认 latest。守护进程是 upload,而 record 以及 scan 需要在配置后手动启动,相关配置以及启动流程从 3.2 开始即可,此版本 docker 镜像无 GPU 配置 。
207+ 也可以直接拉取 docker 镜像运行,默认 latest。守护进程是 upload,而 record 以及 scan 需要在配置后手动启动,相关配置以及启动流程从 3.2 开始即可。
208208
209209> [ !IMPORTANT]
210210> 如果不需要使用可视化页面可以忽略以下提醒:
211211> - 不推荐在有公网 ip 的服务器上直接暴露 22333 端口访问管理页面,如果使用请自行限制端口入站 ip 规则或者采用 nginx 等反向代理配置密钥限制他人访问。
212212> - 管理页面主要针对 record 模块,只有手动运行 record 后(步骤5)才能访问到管理页面。
213213
214+ #### 无 GPU 版本
215+
214216``` bash
215217sudo docker run \
216218 -itd \
217219 --name bilive_docker \
218220 -p 22333:2233 \
219- timerring/bilive:0.2.10
221+ ghcr.io/timerring/bilive:0.2.10
222+ ```
223+
224+ #### 有 GPU 版本
225+
226+ ``` bash
227+ sudo docker run \
228+ -itd \
229+ --gpus ' all,"capabilities=compute,utility,video"' \
230+ --name bilive_docker_gpu \
231+ -p 22333:2233 \
232+ ghcr.io/timerring/bilive-gpu:0.2.10
220233```
221234
222235## 特别感谢
You can’t perform that action at this time.
0 commit comments