mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-20 23:45:36 +08:00
Basic dockerfile
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
FROM continuumio/anaconda3:2021.05
|
||||||
|
|
||||||
|
# Set workdir
|
||||||
|
ENV WD=/app
|
||||||
|
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
|
||||||
|
|
||||||
|
# Install the requriements to the conda environment
|
||||||
|
# So we can cache this layer
|
||||||
|
COPY ./requirements-in.txt $WD/requirements-in.txt
|
||||||
|
RUN $PYROOT/bin/pip install -r $WD/requirements-in.txt
|
||||||
|
|
||||||
|
CMD $PYROOT/bin/python $WD/AzurLaneAutoScript/gui.py
|
||||||
|
|
||||||
|
# Finally include the updated app
|
||||||
|
COPY . $WD/AzurLaneAutoScript
|
||||||
Reference in New Issue
Block a user