Modified Dockerfile to execute in a single "RUN" and remove "apt-mark showauto"

- Decreases docker image size 400MB -> 180MB
This commit is contained in:
Marko Viitanen 2016-03-09 12:56:59 +02:00
parent e5439ced13
commit 1ef0332cbe

View file

@ -7,16 +7,16 @@ FROM ubuntu:15.10
m4 \
build-essential \
git \
yasm
RUN git clone --depth=1 git://github.com/ultravideo/kvazaar.git
RUN cd kvazaar; \
yasm; \
git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \
cd kvazaar; \
./autogen.sh; \
./configure --disable-shared;\
make
make;\
apt-get remove --purge -y automake autoconf libtool m4 build-essential git yasm `apt-mark showauto`; \
apt-get autoremove -y; \
apt-get clean all; \
rm -rf /var/lib/apt/lists/*
COPY src/kvazaar /
RUN apt-get purge -y automake autoconf libtool m4 build-essential git yasm
RUN apt-get autoremove -y
RUN apt-get clean all
RUN rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/kvazaar"]
CMD ["--help"]