fixed gpu docker build (missing ffmeg)

pull/1774/head
ehallein 2024-07-05 15:46:57 +08:00
rodzic 709afd16f3
commit 8ce00e01aa
1 zmienionych plików z 12 dodań i 10 usunięć

Wyświetl plik

@ -21,7 +21,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.2-runtime-ubuntu20.04
#FROM nvidia/cuda:11.2.0-devel-ubuntu20.04
# Env variables
@ -30,21 +30,23 @@ 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
#COPY --from=builder /usr/lib/x86_64-linux-gnu/libavcodec.so.58 /usr/lib/x86_64-linux-gnu/libavcodec.so.58
RUN apt-get update -y \
&& apt-get install -y ffmpeg
# 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"]