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