2023-02-11 01:07:33 +08:00
|
|
|
# docker build -t hgjazhgj/alas:latest .
|
|
|
|
|
# docker run -v ${PWD}:/app/AzurLaneAutoScript -p 22267:22267 --name alas -it --rm hgjazhgj/alas
|
2023-01-28 18:41:38 +08:00
|
|
|
|
2023-02-11 01:07:33 +08:00
|
|
|
FROM python:3.7-slim
|
2021-11-26 18:59:00 +08:00
|
|
|
|
2023-02-11 01:07:33 +08:00
|
|
|
WORKDIR /app/AzurLaneAutoScript
|
2023-01-28 18:41:38 +08:00
|
|
|
|
2023-02-11 01:07:33 +08:00
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
2022-08-08 01:05:55 +08:00
|
|
|
|
2023-02-11 01:07:33 +08:00
|
|
|
# Initial download of UiAutomator2 is slow outside of China using appetizer mirror, switch to GitHub
|
|
|
|
|
RUN apt update \
|
2025-02-19 00:55:45 +08:00
|
|
|
&& apt install -y git adb libgomp1 openssh-client \
|
2023-04-22 19:27:07 +08:00
|
|
|
&& git config --global --add safe.directory '*' \
|
2023-02-11 01:07:33 +08:00
|
|
|
&& pip install -r /tmp/requirements.txt \
|
|
|
|
|
&& rm /tmp/requirements.txt \
|
|
|
|
|
&& rm -r ~/.cache/pip
|
2022-06-22 08:25:34 +08:00
|
|
|
|
2023-02-11 01:07:33 +08:00
|
|
|
CMD python gui.py
|