news 2026/1/25 2:36:17

解决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/1/24 19:35:36

全网最全本科生AI论文平台TOP9:毕业论文写作必备测评

全网最全本科生AI论文平台TOP9&#xff1a;毕业论文写作必备测评 2026年本科生AI论文平台测评&#xff1a;为何需要这份权威榜单&#xff1f; 随着人工智能技术在学术领域的不断渗透&#xff0c;越来越多的本科生开始借助AI工具提升论文写作效率。然而&#xff0c;面对市场上琳…

作者头像 李华
网站建设 2026/1/22 4:07:12

Postman接口测试极速入门指南

一、2026年Postman核心功能升级功能模块新特性测试效率增益智能填充AI自动补全URL/Headers40%断言生成根据历史响应自动推荐断言逻辑65%多环境治理可视化环境变量血缘分析50%二、三阶速成体系&#xff08;含企业级最佳实践&#xff09;阶段1&#xff1a;智能请求构建&#xff0…

作者头像 李华
网站建设 2026/1/20 0:47:54

JAVA攻防-Shiro专题有key无利用链JRMP协议CC1链分析Transform执行链

知识点&#xff1a; 1、Java攻防-Shiro-有key无利用链&JRMP协议 2、Java攻防-Shiro-CC1链分析&Transform执行链 一、演示案例-Java攻防-Shiro-有key无利用链&JRMP协议 Shrio有key无链&#xff1a; JRMP指的是Java远程方法协议&#xff08;Java Remote Method Pro…

作者头像 李华
网站建设 2026/1/20 7:44:10

从需求分析到精准匹配:解码专业红娘的“择偶系统设计”逻辑

作为一名长期与逻辑和系统打交道的技术人&#xff0c;你是否发现&#xff1a;调试代码比处理情感问题简单得多&#xff1f;今天我们从系统设计的角度&#xff0c;聊聊专业红娘如何帮你解决这个“非线性优化问题”。一、问题定义&#xff1a;为什么择偶需求比产品需求更难厘清&a…

作者头像 李华