自从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.py2.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