FROM osgeo/gdal:ubuntu-small-latest

WORKDIR /home/code
COPY ./ /home/code

ENV DEBIAN_FRONTEND=noninteractive


RUN echo "${TZ}" > /etc/timezone \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    apt-get clean && apt-get update && apt-get install -y wget unzip vim gcc g++ tzdata \
    python3.10 \
    python3-pip \
    git
    

ENV TZ=Asia/Shanghai 

RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

CMD ["python3","app.py"]

