Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
FROM python:3.10-slim

MAINTAINER timerring
LABEL maintainer="timerring"

WORKDIR /app

COPY . /app

COPY ./assets/msyh.ttf /usr/share/fonts/msyh.ttf

RUN pip install -r requirements.txt

RUN apt-get update && apt-get install vim -y \
&& apt-get install -y ffmpeg \
&& apt-get install -y procps \
&& apt-get install lsof -y
&& apt-get install lsof -y \
&& pip install -r requirements.txt

ENV BILIVE_PATH=/app
ENV TZ="Asia/Shanghai"

EXPOSE 2233

CMD ["nohup", "python", "-m", "src.upload.upload", ">", "/app/logs/uploadLog/upload-$(date +%Y%m%d-%H%M%S).log", "2>&1", "&"]
CMD ["python", "-m", "src.upload.upload"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,20 +206,20 @@ logs # 日志文件夹

### Docker 运行

也可以直接拉取 docker 镜像运行,默认 latest,如果无法pull,考虑使用镜像地址,例如 https://dockerpull.cn/
也可以直接拉取 docker 镜像运行,默认 latest。默认启动 upload 进程,record 以及 scan 可以在配置后手动启动,相关配置流程从 3.2 开始即可,此版本 docker 镜像无 GPU 配置。

> [!IMPORTANT]
> 如果因为网络原因无法pull,考虑使用镜像地址,例如 https://dockerpull.cn/ ,将镜像改为 `dockerpull.cn/timerring/bilive` 即可。
>
> 如果不需要使用可视化页面可以忽略以下提醒:
> 不推荐在有公网 ip 的服务器上直接暴露 22333 端口访问管理页面,如果使用请自行限制端口入站 ip 规则或者采用 nginx 等反向代理配置密钥限制他人访问。

> 默认启动 upload 进程,record 以及 scan 可以在配置后手动启动,相关配置流程从 3.2 开始即可,此版本 docker 镜像无 GPU 配置。
> - 不推荐在有公网 ip 的服务器上直接暴露 22333 端口访问管理页面,如果使用请自行限制端口入站 ip 规则或者采用 nginx 等反向代理配置密钥限制他人访问。

```bash
sudo docker run \
-itd \
--name bilive_docker \
-p 22333:2233 \
timerring/bilive
timerring/bilive:0.2.9
```

## 特别感谢
Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import configparser

# ============================ Your configuration ============================
GPU_EXIST=True
GPU_EXIST=False
# Can be pipeline, append, merge
MODEL_TYPE = "pipeline"
Inference_Model = "small"
Expand Down