-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from PeterDaveHello/refactor-Dockerfile
Refactor Dockerfile
- Loading branch information
Showing
1 changed file
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
# | ||
# RESOLUTION=`avconv -i input.avi 2>&1 | grep Stream | grep -oP ', \K[0-9]+x[0-9]+'` | ||
# avconv -i input.avi -an -f rawvideo -pix_fmt yuv420p - | docker run -i -a STDIN -a STDOUT kvazaar -i - --wpp --threads=8 --input-res=$RESOLUTION --preset=ultrafast -o - > output.265 | ||
# or | ||
# or | ||
# RESOLUTION=`ffmpeg -i input.avi 2>&1 | grep Stream | grep -oP ', \K[0-9]+x[0-9]+'` | ||
# ffmpeg -i input.avi -an -f rawvideo -pix_fmt yuv420p - | docker run -i -a STDIN -a STDOUT kvazaar -i - --wpp --threads=8 --input-res=$RESOLUTION --preset=ultrafast -o - > output.265 | ||
# | ||
|
@@ -19,24 +19,25 @@ FROM ubuntu:18.04 | |
|
||
MAINTAINER Marko Viitanen <[email protected]> | ||
|
||
# List of needed packages to be able to build kvazaar with autotools | ||
ENV REQUIRED_PACKAGES automake autoconf libtool m4 build-essential git yasm pkgconf | ||
|
||
# Run all the commands in one RUN so we don't have any extra history | ||
# data in the image. | ||
RUN apt-get update \ | ||
# List of needed packages to be able to build kvazaar with autotools | ||
ENV REQUIRED_PACKAGES automake autoconf libtool m4 build-essential git yasm pkgconf | ||
|
||
ADD . kvazaar | ||
# Run all the commands in one RUN so we don't have any extra history | ||
# data in the image. | ||
RUN apt-get update \ | ||
&& apt-get install -y $REQUIRED_PACKAGES \ | ||
&& apt-get clean \ | ||
&& git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \ | ||
cd kvazaar; \ | ||
./autogen.sh; \ | ||
./configure --disable-shared;\ | ||
make;\ | ||
make install; \ | ||
AUTOINSTALLED_PACKAGES=`apt-mark showauto`; \ | ||
apt-get remove --purge --force-yes -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES; \ | ||
apt-get clean autoclean; \ | ||
apt-get autoremove -y; \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
&& cd kvazaar \ | ||
&& ./autogen.sh \ | ||
&& ./configure --disable-shared \ | ||
&& make\ | ||
&& make install \ | ||
&& AUTOINSTALLED_PACKAGES=`apt-mark showauto` \ | ||
&& apt-get remove --purge --force-yes -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES \ | ||
&& apt-get clean autoclean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
|
||
ENTRYPOINT ["kvazaar"] | ||
CMD ["--help"] |