FROM ubuntu
ARG PYTHON_VERSION=3.8
ARG USE_SRC_INSIDE=false
RUN if [ ${USE_SRC_INSIDE} == true ] ; \
then \
sed -i s/archive.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list ; \
sed -i s/security.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list ; \
echo "Use aliyun source for installing libs" ; \
else \
echo "Keep the download source unchanged" ; \
fi
# update apt and install libs
RUN sed -i s:/archive.ubuntu.com:/mirrors.tuna.tsinghua.edu.cn/ubuntu:g /etc/apt/sources.list
RUN cat /etc/apt/sources.list
RUN chmod 777 /tmp
RUN apt-get clean && apt-get update &&\
apt-get install -y g++ vim git wget cmake make libboost-all-dev libgeotiff-dev libgdal-dev libproj-dev \
libsqlite3-dev libxerces-c-dev python3-dev python3-numpy python3-pip --no-install-recommends
# rm -rf /var/lib/apt/lists/*
WORKDIR /root/workspace
RUN git clone https://github.com/PDAL/PDAL.git
# RUN git clone https://gitlab.com/libeigen/eigen.git
RUN cd PDAL &&\
mkdir -p build &&\
cd build &&\
cmake .. &&\
make -j32 &&\
make install
未完待续。。。。。。