mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Merge pull request #191 from PeterDaveHello/refactor-Dockerfile
Refactor Dockerfile
This commit is contained in:
commit
0164291688
23
Dockerfile
23
Dockerfile
|
@ -22,21 +22,22 @@ MAINTAINER Marko Viitanen <fador@iki.fi>
|
|||
# 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"]
|
||||
|
|
Loading…
Reference in a new issue