1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-25 03:26:35 +08:00
Files
AzurLaneAutoScript/dev_tools/Dockerfile

22 lines
571 B
Docker
Raw Normal View History

2021-11-26 11:59:00 +01:00
FROM continuumio/anaconda3:2021.05
# Set remote and local dirs
2021-11-26 11:59:00 +01:00
ENV WD=/app
ENV SOURCE=./
2021-11-26 11:59:00 +01:00
WORKDIR $WD
# Install the base conda environment
ENV PYROOT=$WD/pyroot
RUN conda create --prefix $PYROOT python==3.7.6 -y
# CV2 requires libGL.so.1
RUN apt update
RUN apt install -y libgl1 adb
2021-11-26 11:59:00 +01:00
# Install the requriements to the conda environment
COPY $SOURCE/requirements-in.txt $WD/requirements-in.txt
2021-11-26 11:59:00 +01:00
RUN $PYROOT/bin/pip install -r $WD/requirements-in.txt
2021-11-28 14:15:57 +01:00
# When running the image, mount the ALAS folder into the container
2021-11-26 11:59:00 +01:00
CMD $PYROOT/bin/python $WD/AzurLaneAutoScript/gui.py