Dockerfile
499 Bytes
From osgeo/gdal:ubuntu-small-3.4.1
WORKDIR /root
#设置编码
ENV LANG=en_US.UTF-8
#设置时区
ENV TZ=Asia/Shanghai
COPY . .
RUN apt-get update
#安装pip3
RUN apt-get install python3-pip -y
#安装apache2
RUN apt-get install apache2 -y && apt-get install apache2-dev -y
#安装pg_config
RUN apt-get install libpq-dev
#安装依赖
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