Skip to content

Commit bf527e7

Browse files
committed
Update the Dockerfile with ubuntu18.04 os that build and install x264 from source code.
Signed-off-by: Xiaoxia Liang <xiaoxia.liang@intel.com>
1 parent 5718835 commit bf527e7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

docker/Xeon/Dockerfile.ubuntu18.04

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ RUN rm /etc/apt/sources.list.d/oneAPI.list && \
2525
apt-get install --no-install-recommends -y \
2626
git tar ca-certificates \
2727
libx265-dev \
28-
libx264-dev \
2928
zlib1g-dev \
3029
nasm \
3130
gcc-9 \
@@ -40,6 +39,16 @@ RUN rm /etc/apt/sources.list.d/oneAPI.list && \
4039
tar -zx --strip-components=1 -C "${DL_PREFIX}/ffmpeg"
4140

4241

42+
# build and install x264 from source
43+
WORKDIR ${DL_PREFIX}
44+
RUN git clone https://github.com/mirror/x264 -b stable --depth 1
45+
46+
WORKDIR ${DL_PREFIX}/x264
47+
RUN ./configure --enable-shared && \
48+
make -j "$(nproc)" && \
49+
make install && \
50+
ldconfig
51+
4352
COPY . ${DL_PREFIX}/Video-Super-Resolution-Library
4453

4554
WORKDIR ${DL_PREFIX}/Video-Super-Resolution-Library

0 commit comments

Comments
 (0)