From 2bf5177992f89dbabebf4df059fe57c1d953aa3b Mon Sep 17 00:00:00 2001 From: Antoine Lavenant Date: Tue, 19 Dec 2023 16:48:23 +0100 Subject: [PATCH] update dockerfile --- Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03b0778..36ae009 100755 --- a/Dockerfile +++ b/Dockerfile @@ -7,23 +7,11 @@ SHELL ["micromamba", "run", "-n", "pdal_ign_plugin", "/bin/bash", "-c"] COPY . . -RUN apt-get update && apt-get install -y cmake make build-essential g++ && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install --no-install-recommends -y cmake make build-essential g++ && rm -rf /var/lib/apt/lists/* RUN cmake -G"Unix Makefiles" -DCONDA_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release RUN make -j4 install -FROM debian:bullseye-slim - -# install the plugIn -COPY --from=build_ign_pdal_plugin tmp/install/lib/* lib - -# install PDAL -COPY --from=build_ign_pdal_plugin /opt/conda/envs/pdal_ign_plugin/bin/pdal /opt/conda/envs/pdal_ign_plugin/bin/pdal -COPY --from=build_ign_pdal_plugin /opt/conda/envs/pdal_ign_plugin/bin/python /opt/conda/envs/pdal_ign_plugin/bin/python -COPY --from=build_ign_pdal_plugin /opt/conda/envs/pdal_ign_plugin/lib/ /opt/conda/envs/pdal_ign_plugin/lib/ -COPY --from=build_ign_pdal_plugin /opt/conda/envs/pdal_ign_plugin/ssl /opt/conda/envs/pdal_ign_plugin/ssl -COPY --from=build_ign_pdal_plugin /opt/conda/envs/pdal_ign_plugin/share/proj/proj.db /opt/conda/envs/pdal_ign_plugin/share/proj/proj.db - ENV PATH=$PATH:/opt/conda/envs/pdal_ign_plugin/bin/ ENV PROJ_LIB=/opt/conda/envs/pdal_ign_plugin/share/proj/ -ENV PDAL_DRIVER_PATH=/lib/ +ENV PDAL_DRIVER_PATH=/tmp/install/lib