2016-03-09 12:08:24 +00:00
|
|
|
# A simple Dockerfile for building Kvazaar from the git repository
|
|
|
|
# Example build command when in this directory: docker build -t kvazaar .
|
|
|
|
|
|
|
|
# Use Ubuntu 15.10 as a base for now, it's around 136MB
|
2016-03-09 09:12:50 +00:00
|
|
|
FROM ubuntu:15.10
|
2016-03-09 12:08:24 +00:00
|
|
|
|
|
|
|
# List of needed packages to be able to build kvazaar with autotools
|
2016-03-09 11:22:27 +00:00
|
|
|
ENV REQUIRED_PACKAGES automake autoconf libtool m4 build-essential git yasm
|
2016-03-09 12:08:24 +00:00
|
|
|
|
|
|
|
# Running update causes extra data to be stored in the image
|
|
|
|
# We don't need to update right now.
|
|
|
|
#RUN apt-get update
|
|
|
|
|
|
|
|
# Run all the commands in one RUN so we don't have any extra history
|
|
|
|
# data in the image.
|
2016-03-09 11:22:27 +00:00
|
|
|
RUN apt-get install -y $REQUIRED_PACKAGES ; \
|
2016-03-09 10:56:59 +00:00
|
|
|
git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \
|
|
|
|
cd kvazaar; \
|
2016-03-09 09:12:50 +00:00
|
|
|
./autogen.sh; \
|
|
|
|
./configure --disable-shared;\
|
2016-03-09 10:56:59 +00:00
|
|
|
make;\
|
2016-03-09 11:22:27 +00:00
|
|
|
AUTOINSTALLED_PACKAGES=`apt-mark showauto`;\
|
|
|
|
apt-get remove --purge -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES; \
|
2016-03-09 10:56:59 +00:00
|
|
|
apt-get autoremove -y; \
|
|
|
|
apt-get clean all; \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2016-03-09 12:08:24 +00:00
|
|
|
# Because we build only the static binary, copy that to the root
|
2016-03-09 09:12:50 +00:00
|
|
|
COPY src/kvazaar /
|
|
|
|
ENTRYPOINT ["/kvazaar"]
|
|
|
|
CMD ["--help"]
|