mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 08:38:20 +08:00
Move docker to deploy
This commit is contained in:
23
deploy/docker/Dockerfile
Normal file
23
deploy/docker/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM condaforge/mambaforge:4.12.0-0
|
||||
|
||||
# Set remote and local dirs
|
||||
WORKDIR /app
|
||||
ENV SOURCE=./
|
||||
|
||||
# Install the base conda environment
|
||||
ENV PYROOT=/app/pyroot
|
||||
RUN mamba create --prefix $PYROOT python==3.7.6 -y
|
||||
|
||||
RUN apt update
|
||||
RUN apt install -y adb netcat
|
||||
|
||||
# Install the requriements to the conda environment
|
||||
COPY $SOURCE/requirements.txt /app/requirements-docker.txt
|
||||
RUN $PYROOT/bin/pip install -r /app/requirements-docker.txt
|
||||
|
||||
# Initial download of UIAutomator2 is really slow with appetizer mirror
|
||||
RUN sed -i "s#path = mirror_download(url,#path = cache_download(url,#" $PYROOT/lib/python3.7/site-packages/uiautomator2/init.py
|
||||
|
||||
# When running the image, mount the ALAS folder into the container
|
||||
RUN git config --global --add safe.directory /app/AzurLaneAutoScript
|
||||
CMD $PYROOT/bin/python /app/AzurLaneAutoScript/gui.py
|
||||
Reference in New Issue
Block a user