Moved required packages and apt-mark showauto output to env variables

This commit is contained in:
Marko Viitanen 2016-03-09 13:22:27 +02:00
parent 1ef0332cbe
commit 4ca43aeb04

View file

@ -1,19 +1,14 @@
FROM ubuntu:15.10
ENV REQUIRED_PACKAGES automake autoconf libtool m4 build-essential git yasm
RUN apt-get update
RUN apt-get install -y \
automake \
autoconf \
libtool \
m4 \
build-essential \
git \
yasm; \
RUN apt-get install -y $REQUIRED_PACKAGES ; \
git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \
cd kvazaar; \
./autogen.sh; \
./configure --disable-shared;\
make;\
apt-get remove --purge -y automake autoconf libtool m4 build-essential git yasm `apt-mark showauto`; \
AUTOINSTALLED_PACKAGES=`apt-mark showauto`;\
apt-get remove --purge -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES; \
apt-get autoremove -y; \
apt-get clean all; \
rm -rf /var/lib/apt/lists/*