Skip to content

Commit f6298da

Browse files
authored
Update Dockerfile.ubuntu20.04
Signed-off-by: Miłosz Linkiewicz <milosz.linkiewicz@intel.com>
1 parent 0d48b10 commit f6298da

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docker/Xeon/Dockerfile.ubuntu20.04

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,24 @@ RUN ./configure \
5151
--extra-libs='-lraisr -lstdc++ -lippcore -lippvm -lipps -lippi -lm -lintlc -lsvml' \
5252
--enable-cross-compile \
5353
--prefix="${PREFIX}" && \
54-
make clean && make -j $(nproc) && \
54+
make clean && make -j"$(nproc)" && \
5555
make install
5656

5757
ENV LIBIPP="/opt/intel/oneapi/ipp/latest/lib/intel64"
5858
WORKDIR ${PREFIX}/usr/local/lib
59-
RUN ldd ${PREFIX}/bin/ffmpeg | cut -d ' ' -f 3 | xargs -i cp {} . && \
60-
cp ${LIBIPP}/libippsk0.so.10.8 . && \
61-
cp ${LIBIPP}/libippsn0.so.10.8 . && \
62-
cp ${LIBIPP}/libippsl9.so.10.8 . && \
63-
cp ${LIBIPP}/libippse9.so.10.8 . && \
64-
cp ${LIBIPP}/libippsy8.so.10.8 . && \
65-
cp ${LIBIPP}/libippsn8.so.10.8 . && \
66-
cp ${LIBIPP}/libippsm7.so.10.8 . && \
67-
cp ${LIBIPP}/libippik0.so.10.8 . && \
68-
cp ${LIBIPP}/libippil9.so.10.8 . && \
69-
mv ${PREFIX}/bin ${PREFIX}/usr/local/ && \
70-
LD_LIBRARY_PATH=${PREFIX}/usr/local/lib ${PREFIX}/usr/local/bin/ffmpeg -buildconf && \
71-
rm -rf ${PREFIX}/include/ ${PREFIX}/share/ ${PREFIX}/lib/
59+
RUN ldd "${PREFIX}/bin/ffmpeg" | cut -d ' ' -f 3 | xargs -i cp {} . && \
60+
cp "${LIBIPP}/libippsk0.so.10.8" . && \
61+
cp "${LIBIPP}/libippsn0.so.10.8" . && \
62+
cp "${LIBIPP}/libippsl9.so.10.8" . && \
63+
cp "${LIBIPP}/libippse9.so.10.8" . && \
64+
cp "${LIBIPP}/libippsy8.so.10.8" . && \
65+
cp "${LIBIPP}/libippsn8.so.10.8" . && \
66+
cp "${LIBIPP}/libippsm7.so.10.8" . && \
67+
cp "${LIBIPP}/libippik0.so.10.8" . && \
68+
cp "${LIBIPP}/libippil9.so.10.8" . && \
69+
mv "${PREFIX}/bin" "${PREFIX}/usr/local/" && \
70+
LD_LIBRARY_PATH="${PREFIX}/usr/local/lib" "${PREFIX}/usr/local/bin/ffmpeg" -buildconf && \
71+
rm -rf "${PREFIX:?}/include/" "${PREFIX:?}/share/" "${PREFIX:?}/lib/"
7272

7373
ARG IMAGE_CACHE_REGISTRY
7474
FROM ${IMAGE_CACHE_REGISTRY}/library/ubuntu:20.04@sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8bf562c629e AS base

0 commit comments

Comments
 (0)