news 2026/6/10 18:26:19

解决alas在docker上部署失败的问题

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
解决alas在docker上部署失败的问题

自从debian 11停止维护以后,alas的docker部署就出了问题。以下是相关配置文件的修改,在本人的计算机上测试部署生效。
测试环境:

System Report details

Date generated: 2026-01-16 16:52:56

Hardware Information:

Hardware Model: MECHREVO Jiguang Pro Series GS5AG0O

Memory: 16.0 GiB

Processor: 12th Gen Intel Core i5-12450H x 12

Graphics: NVIDIA GeForce RTX 3060 Laptop GPU

Disk Capacity: 512.1 GB

Software Information:

Firmware Version: N.1.02MRO05

OS Name: Ubuntu Resolute Raccoon (development branch)

OS Build: (null)

OS Type: 64-bit

GNOME Version: 49

Windowing System: Wayland

Kernel Version: Linux 6.18.0-8-generic


1.Dockerfile.cn:

# docker build -t hgjazhgj/alas:latest . # docker run -v ${PWD}:/app/AzurLaneAutoScript -p 22267:22267 --name alas -it --rm hgjazhgj/alas FROM python:3.12-slim-trixie WORKDIR /app/AzurLaneAutoScript COPY requirements.txt /tmp/requirements.txt RUN echo "\ deb https://mirrors.aliyun.com/debian/ trixie main non-free contrib\n\ deb-src https://mirrors.aliyun.com/debian/ trixie main non-free contrib\n\ deb https://mirrors.aliyun.com/debian-security/ trixie-security main\n\ deb-src https://mirrors.aliyun.com/debian-security/ trixie-security main\n\ deb https://mirrors.aliyun.com/debian/ trixie-updates main non-free contrib\n\ deb-src https://mirrors.aliyun.com/debian/ trixie-updates main non-free contrib\n\ deb https://mirrors.aliyun.com/debian/ trixie-backports main non-free contrib\n\ deb-src https://mirrors.aliyun.com/debian/ trixie-backports main non-free contrib" \ > /etc/apt/sources.list \ && apt update \ && apt install -y git adb libgomp1 openssh-client pkg-config build-essential python3-dev libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev libavfilter-dev libswscale-dev libswresample-dev ffmpeg \ && git config --global --add safe.directory '*' \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo 'Asia/Shanghai' > /etc/timezone \ && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \ && pip install -r /tmp/requirements.txt \ && rm /tmp/requirements.txt \ && rm -r ~/.cache/pip CMD python gui.py

2.requirements.txt:

# Image processing numpy==1.26.4 scipy==1.13.0 pillow opencv-python-headless imageio==2.37.2 # Device connection adbutils>=2.9.1, <3.0.0 uiautomator2==3.3.3 uiautomator2cache==0.3.0.1 wrapt==2.0.1 retrying lz4 av==16.1.0 psutil==5.9.5 # Utils rich==13.7.0 tqdm jellyfish==0.11.2 pyyaml inflection pydantic aiofiles prettytable==3.9.0 anyio==4.3.0 # Pushing onepush==1.4.0 pycryptodome==3.19.0 pypresence==4.3.0 # Ocr cnocr==2.2.4 mxnet==1.9.0 # Webui pywebio==1.7.0 starlette==0.27.0 uvicorn[standard]==0.23.0 zerorpc==0.6.3 pyzmq==25.1.2 #shabi cached-property==2.0.1
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/10 14:34:47

《欲罢不能:刷屏时代如何摆脱行为上瘾》

《欲罢不能》不只是讲网瘾&#xff0c;而是把它归到“行为上瘾”这个大概念里说。核心就是&#xff0c;我们刷手机、打游戏停不下来&#xff0c;不是意志力差&#xff0c;是背后有顶尖设计师&#xff0c;盯着人类心理弱点设计了上瘾套路。 书里说行为上瘾和吸毒、喝酒的生…

作者头像 李华
网站建设 2026/6/10 3:13:36

多模一体破局:金仓数据库引领文档数据库国产化新征程

多模一体破局&#xff1a;金仓数据库引领文档数据库国产化新征程 在数字化转型的深水区&#xff0c;企业对数据处理的期待早已超越简单的存储与调用。文档数据库凭借其对半结构化数据的天然亲和力&#xff0c;已成为现代应用开发的重要支柱。然而&#xff0c;当企业面临技术自主…

作者头像 李华
网站建设 2026/6/10 14:35:01

《企业元宇宙架构设计,AI应用架构师如何打造经典》

企业元宇宙架构设计&#xff1a;AI应用架构师如何打造经典 一、引言&#xff1a;企业元宇宙不是噱头&#xff0c;是数字化转型的下一站 钩子&#xff1a;你见过“能预测未来”的工厂吗&#xff1f; 去年&#xff0c;我去参观一家长三角的汽车零部件工厂&#xff0c;车间里没有传…

作者头像 李华
网站建设 2026/6/10 14:30:51

亲测好用9个AI论文平台,专科生毕业论文必备!

亲测好用9个AI论文平台&#xff0c;专科生毕业论文必备&#xff01; AI 工具如何助力论文写作&#xff0c;让学术之路更轻松 在当前的学术环境中&#xff0c;AI 工具正逐渐成为学生和科研工作者不可或缺的助手。特别是在论文写作过程中&#xff0c;AI 不仅能帮助降低 AIGC 率&a…

作者头像 李华
网站建设 2026/6/10 14:30:42

SEO救星上线!Google Search Console新功能手把手教你秒提收录

SEO救星上线&#xff01;Google Search Console新功能手把手教你秒提收录SEO救星上线&#xff01;Google Search Console新功能手把手教你秒提收录先别急着点按钮&#xff0c;把“门”打开再说点“请求索引”之前&#xff0c;先给页面做个“全身体检”1. 看看有没有瞎写 noinde…

作者头像 李华