mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 16:19:03 +08:00
Dockerfile cleanup
This commit is contained in:
parent
ad337d1c6d
commit
1a4d97367c
@ -1,12 +1,11 @@
|
||||
FROM continuumio/anaconda3:2021.05
|
||||
|
||||
# Set remote and local dirs
|
||||
ENV WD=/app
|
||||
WORKDIR /app
|
||||
ENV SOURCE=./
|
||||
WORKDIR $WD
|
||||
|
||||
# Install the base conda environment
|
||||
ENV PYROOT=$WD/pyroot
|
||||
ENV PYROOT=/app/pyroot
|
||||
RUN conda create --prefix $PYROOT python==3.7.6 -y
|
||||
|
||||
# CV2 requires libGL.so.1
|
||||
@ -14,8 +13,8 @@ RUN apt update
|
||||
RUN apt install -y libgl1 adb
|
||||
|
||||
# Install the requriements to the conda environment
|
||||
COPY $SOURCE/requirements-in.txt $WD/requirements-in.txt
|
||||
RUN $PYROOT/bin/pip install -r $WD/requirements-in.txt
|
||||
COPY $SOURCE/requirements-in.txt /app/requirements-in.txt
|
||||
RUN $PYROOT/bin/pip install -r /app/requirements-in.txt
|
||||
|
||||
# When running the image, mount the ALAS folder into the container
|
||||
CMD $PYROOT/bin/python $WD/AzurLaneAutoScript/gui.py
|
||||
CMD $PYROOT/bin/python /app/AzurLaneAutoScript/gui.py
|
||||
|
||||
Loading…
Reference in New Issue
Block a user