Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxaah
dr_py
提交
f8e6f708
dr_py
项目概览
sxaah
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f8e6f708
编写于
9月 04, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加了dockerfile
上级
f5175aed
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
72 addition
and
1 deletion
+72
-1
dockerfile
dockerfile
+50
-0
sources.list
sources.list
+11
-0
安卓本地搭建说明.md
安卓本地搭建说明.md
+11
-1
未找到文件。
dockerfile
0 → 100644
浏览文件 @
f8e6f708
# 基于的基础镜像-在dockerhub找
FROM
silverlogic/python3.8
# 添加描述信息
MAINTAINER
python3.8+drpy+supervisord by "hjdhnx"
# 设置app文件夹是工作目录
WORKDIR
/root/sd/pywork/dr_py
# 复制文件及目录过去
COPY
. /root/sd/pywork/dr_py
# 配置一下国内的agt源
# 移动旧的源
RUN
cp
/etc/apt/sources.list /etc/apt/sources.list.bac
# 更换国内源 bullseye debian11 https://mirrors.bfsu.edu.cn/help/debian/
# RUN cat <<EOF > /etc/apt/sources.list
# # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
# deb https://mirrors.bfsu.edu.cn/debian/ bullseye main contrib non-free
# # deb-src https://mirrors.bfsu.edu.cn/debian/ bullseye main contrib non-free
# deb https://mirrors.bfsu.edu.cn/debian/ bullseye-updates main contrib non-free
# # deb-src https://mirrors.bfsu.edu.cn/debian/ bullseye-updates main contrib non-free
#
# deb https://mirrors.bfsu.edu.cn/debian/ bullseye-backports main contrib non-free
# # deb-src https://mirrors.bfsu.edu.cn/debian/ bullseye-backports main contrib non-free
#
# deb https://mirrors.bfsu.edu.cn/debian-security bullseye-security main contrib non-free
# # deb-src https://mirrors.bfsu.edu.cn/debian-security bullseye-security main contrib non-free
# EOF
ADD
sources.list /etc/apt/
# RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN
apt-get clean
RUN
apt-get update
&&
apt-get
install
-y
vim
# 执行指令,换源并安装依赖
RUN
pip
install
-i
https://mirrors.cloud.tencent.com/pypi/simple
--upgrade
pip
# 设置默认pip源
RUN
pip config
set
global.index-url https://mirrors.cloud.tencent.com/pypi/simple
# 执行指令,安装依赖
RUN
pip
install
-r
requirements.txt
# 切换容器时区
RUN
cp
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
# 设置语言支持中文打印
ENV
LANG C.UTF-8
ENV
LC_ALL C.UTF-8
# ENV LC_ALL=zh_CN.utf8
# ENV LANG=zh_CN.utf8
# ENV LANGUAGE=zh_CN.utf8
# RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
# 执行命令
# CMD [ "python", "/root/sd/pywork/dr_py/app.py" ]
# supervisord -c /root/sd/pywork/dr_py/super/flask.conf
CMD
[ "supervisord","-c", "/root/sd/pywork/dr_py/super/flask.conf" ]
\ No newline at end of file
sources.list
0 → 100644
浏览文件 @
f8e6f708
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.bfsu.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.bfsu.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.bfsu.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.bfsu.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.bfsu.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.bfsu.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.bfsu.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.bfsu.edu.cn/debian-security bullseye-security main contrib non-free
\ No newline at end of file
安卓本地搭建说明.md
浏览文件 @
f8e6f708
...
...
@@ -9,6 +9,11 @@
apt
install
libxml2 libxslt
-y
apt
install
python3
```
##### docker直装
```
shell
docker build
-f
dockerfile
-t
drpy
.
docker run
-it
-p
5705:5705
-p
9001:9001
--name
drpy drpy /bin/bash
```
#### termux容器ubutnu1804内安装(此方法请无视上方代码)
1.
准备工作-termux通过tome搭建完整的ubuntu1804系统(基于proot容器技术)
ZeroTermux左侧边栏按住手指右滑出现操作面板
...
...
@@ -86,5 +91,10 @@ echo "debian" >> ~/.bashrc
5.
启动成功访问查看
[
本地地址
](
http://localhost:5705
)
[
进程管理地址
](
http://localhost:9001
)
[
进程管理地址
](
http://localhost:9001
)
```
shell
apt-get
install
language-pack-zh-hans
cat
/etc/issue
locale
-a
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录