Skip to content

Commit 359dd26

Browse files
authored
Update Dockerfile.ubuntu18.04
Signed-off-by: Miłosz Linkiewicz <milosz.linkiewicz@intel.com>
1 parent 7dbfa1a commit 359dd26

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docker/Xeon/Dockerfile.ubuntu18.04

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,24 @@ RUN ./configure \
5858
--extra-libs='-lraisr -lstdc++ -lippcore -lippvm -lipps -lippi -lm -lintlc -lsvml' \
5959
--enable-cross-compile \
6060
--prefix="${PREFIX}" && \
61-
make clean && make -j $(nproc) && \
61+
make clean && make -j"$(nproc)" && \
6262
make install
6363

6464
ENV LIBIPP="/opt/intel/oneapi/ipp/latest/lib/intel64"
6565
WORKDIR ${PREFIX}/usr/local/lib
66-
RUN ldd ${PREFIX}/bin/ffmpeg | cut -d ' ' -f 3 | xargs -i cp {} . && \
67-
cp ${LIBIPP}/libippsk0.so.10.5 . && \
68-
cp ${LIBIPP}/libippsn0.so.10.5 . && \
69-
cp ${LIBIPP}/libippsl9.so.10.5 . && \
70-
cp ${LIBIPP}/libippse9.so.10.5 . && \
71-
cp ${LIBIPP}/libippsy8.so.10.5 . && \
72-
cp ${LIBIPP}/libippsn8.so.10.5 . && \
73-
cp ${LIBIPP}/libippsm7.so.10.5 . && \
74-
cp ${LIBIPP}/libippik0.so.10.5 . && \
75-
cp ${LIBIPP}/libippil9.so.10.5 . && \
76-
mv ${PREFIX}/bin ${PREFIX}/usr/local/ && \
77-
LD_LIBRARY_PATH=${PREFIX}/usr/local/lib ${PREFIX}/usr/local/bin/ffmpeg -buildconf && \
78-
rm -rf ${PREFIX}/include/ ${PREFIX}/share/ ${PREFIX}/lib/
66+
RUN ldd "${PREFIX}/bin/ffmpeg" | cut -d ' ' -f 3 | xargs -i cp {} . && \
67+
cp "${LIBIPP}/libippsk0.so.10.5" . && \
68+
cp "${LIBIPP}/libippsn0.so.10.5" . && \
69+
cp "${LIBIPP}/libippsl9.so.10.5" . && \
70+
cp "${LIBIPP}/libippse9.so.10.5" . && \
71+
cp "${LIBIPP}/libippsy8.so.10.5" . && \
72+
cp "${LIBIPP}/libippsn8.so.10.5" . && \
73+
cp "${LIBIPP}/libippsm7.so.10.5" . && \
74+
cp "${LIBIPP}/libippik0.so.10.5" . && \
75+
cp "${LIBIPP}/libippil9.so.10.5" . && \
76+
mv "${PREFIX}/bin" "${PREFIX}/usr/local/" && \
77+
LD_LIBRARY_PATH="${PREFIX}/usr/local/lib" "${PREFIX}/usr/local/bin/ffmpeg" -buildconf && \
78+
rm -rf "${PREFIX:?}/include/" "${PREFIX:?}/share/" "${PREFIX:?}/lib/"
7979

8080
ARG IMAGE_CACHE_REGISTRY
8181
FROM ${IMAGE_CACHE_REGISTRY}/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98 AS base

0 commit comments

Comments
 (0)