添加dockerfile

This commit is contained in:
weixin_46229132 2025-06-13 11:34:50 +08:00
parent e8178d191e
commit 68d510ead6

39
Dockerfile Normal file
View File

@ -0,0 +1,39 @@
FROM opendronemap/odm:latest
# 移除原有的入口点
ENTRYPOINT []
# 设置工作目录
WORKDIR /code
# 安装 Python 包
RUN pip install --no-cache-dir \
numpy==1.23.5 \
pandas==2.0.3 \
scikit-learn==1.3.2 \
matplotlib==3.7.4 \
piexif==1.1.3 \
geopy==2.4.1 \
psutil==5.9.8 \
docker==7.1.0 \
tqdm==4.66.5 \
pyproj==3.5.0 \
rasterio==1.3.9 \
edt==3.0.0 \
opencv-python==4.8.1.78 \
fiona==1.9.5 \
pyinstaller==6.14.1
# 安装 vim 编辑器 安装 OpenSceneGraph 和 osgconv
RUN apt-get update && apt-get install -y vim && apt-get install -y fonts-wqy-zenhei && \
apt-get install -y openscenegraph libopenscenegraph-dev && \
apt-get install -y xvfb && \
rm -rf /var/lib/apt/lists/*
# 创建目标文件夹
RUN mkdir -p /code_pro
# 复制本地文件夹内容到镜像
COPY . /code_pro/
# 新增:设置入口
ENTRYPOINT ["python3", "/code_pro/main.py"]