Skip to content

Commit 3219794

Browse files
authored
Merge pull request #14 from IGNF/fix/docker-git
Fix docker image
2 parents 822b8ba + ee2e347 commit 3219794

3 files changed

Lines changed: 27 additions & 23 deletions

File tree

Dockerfile

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
FROM mambaorg/micromamba:latest
1+
FROM mambaorg/micromamba:latest AS mamba_pdal
22
COPY environment.yml /environment.yml
33
# Using USER root seems to fix permission issues when building mamba environment with pip packages
44
USER root
5+
6+
RUN apt update
7+
RUN apt install -y git
8+
59
RUN micromamba env create -n patchwork -f /environment.yml
610

7-
WORKDIR /patchwork
8-
COPY . /patchwork
11+
# Start from raw debian image to lower the final image size
12+
FROM debian:bullseye-slim
13+
14+
# install PDAL + mamba environment
15+
COPY --from=mamba_pdal /opt/conda/envs/patchwork/bin/pdal /opt/conda/envs/patchwork/bin/pdal
16+
COPY --from=mamba_pdal /opt/conda/envs/patchwork/bin/python /opt/conda/envs/patchwork/bin/python
17+
COPY --from=mamba_pdal /opt/conda/envs/patchwork/lib/ /opt/conda/envs/patchwork/lib/
18+
COPY --from=mamba_pdal /opt/conda/envs/patchwork/ssl /opt/conda/envs/patchwork/ssl
19+
COPY --from=mamba_pdal /opt/conda/envs/patchwork/share/proj/proj.db /opt/conda/envs/patchwork/share/proj/proj.db
920

1021
ENV PATH=$PATH:/opt/conda/envs/patchwork/bin/
1122
ENV PROJ_LIB=/opt/conda/envs/patchwork/share/proj/
23+
24+
WORKDIR /patchwork
25+
COPY . /patchwork
26+

examples/patchwork_example.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# for selecting, cutting and dispatching lidar files for patchwork
2+
python main.py \
3+
filepath.RECIPIENT_DIRECTORY=[dossier parent du fichier receveur] \
4+
filepath.RECIPIENT_NAME=[nom du fichier receveur] \
5+
filepath.SHP_DIRECTORY=[dossier parent du shapefile] \
6+
filepath.SHP_NAME=[nom du fichier shapefile] \
7+
filepath.OUTPUT_DIR=[dossier de sortie] \
8+
filepath.OUTPUT_NAME=[nom du fichier de sortie] \
9+
\[autres options\]

exemples/patchwork_example.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)