From 709afd16f33a5ebdac49d5615952e2af002f45fe Mon Sep 17 00:00:00 2001 From: Evan Hallein Date: Thu, 4 Jul 2024 21:39:11 +0800 Subject: [PATCH] working gpu docker build --- gpu.Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gpu.Dockerfile b/gpu.Dockerfile index ee286778..c093bb30 100644 --- a/gpu.Dockerfile +++ b/gpu.Dockerfile @@ -22,7 +22,7 @@ RUN bash configure.sh clean ### Use a second image for the final asset to reduce the number and # size of the layers. #FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04 -FROM nvidia/cuda:11.2.0-devel-ubuntu20.04 +#FROM nvidia/cuda:11.2.0-devel-ubuntu20.04 # Env variables ENV DEBIAN_FRONTEND=noninteractive \ @@ -30,21 +30,21 @@ ENV DEBIAN_FRONTEND=noninteractive \ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/code/SuperBuild/install/lib" \ PDAL_DRIVER_PATH="/code/SuperBuild/install/bin" -WORKDIR /code +#WORKDIR /code # Copy everything we built from the builder -COPY --from=builder /code /code +#COPY --from=builder /code /code # Copy the Python libraries installed via pip from the builder -COPY --from=builder /usr/local /usr/local +#COPY --from=builder /usr/local /usr/local # Install shared libraries that we depend on via APT, but *not* # the -dev packages to save space! # Also run a smoke test on ODM and OpenSfM -RUN bash configure.sh installruntimedepsonly \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ - && bash run.sh --help \ - && bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'" +#RUN bash configure.sh installruntimedepsonly \ +# && apt-get clean \ +# && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ +# && bash run.sh --help \ +# && bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'" # Entry point ENTRYPOINT ["python3", "/code/run.py"]