##
# gregtzar/tomb
#
# This creates an Ubuntu derived base image and installs the tomb library
# along with it's dependencies.

FROM dyne/devuan:chimaera

ARG DEBIAN_FRONTEND=noninteractive
ARG TOMB_VERSION=2.9

# Install dependencies
RUN apt-get update -y && \
	apt-get install -y -q --no-install-recommends\
	make \
	sudo \
	curl \
	rsync \
	zsh \
	gnupg \
	cryptsetup \
	pinentry-curses \
	file xxd \
	steghide \
	plocate \
	recoll

# Build and install Tomb from remote repo
RUN curl https://files.dyne.org/tomb/releases/Tomb-$TOMB_VERSION.tar.gz -o /tmp/Tomb-$TOMB_VERSION.tar.gz && \
	cd /tmp && \
	tar -zxvf /tmp/Tomb-$TOMB_VERSION.tar.gz && \
	cd /tmp/Tomb-$TOMB_VERSION && \
	make install
