From db7c40a697a5cb6fc390f5316fcafa1a5961c817 Mon Sep 17 00:00:00 2001 From: ZhangMingZhao1 <1104272319@qq.com> Date: Fri, 13 Sep 2019 22:14:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix=20linux=20locale=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a938699..0cfaafe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM jrottenberg/ffmpeg #VOLUME /opt/data - +RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \ + && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 +ENV LANG en_US.utf8 RUN export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ && apt-get install -y curl \ @@ -40,10 +42,10 @@ COPY common /opt/common COPY engine /opt/engine COPY ykdl /opt/ykdl COPY Bilibili.py /opt/ -RUN chmod 755 /opt/Blibili.py +RUN chmod 755 /opt/Bilibili.py COPY ["config(demo).yaml", "/opt/config.yaml"] WORKDIR /opt -ENTRYPOINT ["./Bilibili.py", "start"] +ENTRYPOINT ["./Bilibili.py"] -#EXPOSE 9515/tcp \ No newline at end of file +EXPOSE 9515/tcp From 0433ce78bc839521b36fb7aec4782e972841ca6f Mon Sep 17 00:00:00 2001 From: Lawliet Date: Fri, 13 Sep 2019 22:27:00 +0800 Subject: [PATCH 2/3] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新docker说明 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 67ec392..328b03c 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,18 @@ 使用需要修改文件名**config(demo).yaml** ➡ **config.yaml** +## docker一键使用 🔨 +```bash +cd bilibiliupload +sudo docker build . -t sc2 +sudo docker -d run sc2 +``` +## 进入容器 📦 +```bash +sudo docker ps (找到你的imageId) +sudo docker exec -it imageId /bin/bash +``` + >## Linux系统下使用方法: > > 启动: ./Bilibili.py start From bd4f92c3103cca87d497245d98fe5cbdbc6cb1ed Mon Sep 17 00:00:00 2001 From: Lawliet Date: Fri, 13 Sep 2019 22:29:04 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 328b03c..00a8de3 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ 支持自动录制各大直播平台,上传直播录像到bilibili。 相关设置在config.yaml文件中,如直播间地址,b站账号密码 -使用需要修改文件名**config(demo).yaml** ➡ **config.yaml** - ## docker一键使用 🔨 ```bash cd bilibiliupload @@ -17,6 +15,9 @@ sudo docker ps (找到你的imageId) sudo docker exec -it imageId /bin/bash ``` +## 其他使用 +使用需要修改文件名**config(demo).yaml** ➡ **config.yaml** + >## Linux系统下使用方法: > > 启动: ./Bilibili.py start