Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alavenant committed Dec 19, 2023
1 parent 3e84a22 commit 2bf5177
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2bf5177

Please sign in to comment.