mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Moved required packages and apt-mark showauto output to env variables
This commit is contained in:
parent
1ef0332cbe
commit
4ca43aeb04
13
Dockerfile
13
Dockerfile
|
@ -1,19 +1,14 @@
|
||||||
FROM ubuntu:15.10
|
FROM ubuntu:15.10
|
||||||
|
ENV REQUIRED_PACKAGES automake autoconf libtool m4 build-essential git yasm
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y \
|
RUN apt-get install -y $REQUIRED_PACKAGES ; \
|
||||||
automake \
|
|
||||||
autoconf \
|
|
||||||
libtool \
|
|
||||||
m4 \
|
|
||||||
build-essential \
|
|
||||||
git \
|
|
||||||
yasm; \
|
|
||||||
git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \
|
git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \
|
||||||
cd kvazaar; \
|
cd kvazaar; \
|
||||||
./autogen.sh; \
|
./autogen.sh; \
|
||||||
./configure --disable-shared;\
|
./configure --disable-shared;\
|
||||||
make;\
|
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 autoremove -y; \
|
||||||
apt-get clean all; \
|
apt-get clean all; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
Loading…
Reference in a new issue