Dockerfile 561 Bytes
From osgeo/gdal:ubuntu-small-3.4.1


WORKDIR /root
#设置编码
ENV LANG=en_US.UTF-8
#设置时区
ENV TZ=Asia/Shanghai


RUN apt-get update
#安装pip
RUN apt-get install python3-pip -y

#安装opencv所需依赖库
RUN apt-get install libgl1-mesa-glx -y
RUN apt-get install libglib2.0-dev -y

#安装apache2
RUN apt-get install apache2 -y
RUN apt-get install apache2-dev -y


#安装依赖
COPY . .
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn


RUN mod_wsgi-express install-module