FROM debian:stretch

ARG git_commit=<PASSWORD>

RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \
    apt-get update -qq && \
    apt-get install -qqy --no-install-recommends\
      apt-transport-https \
      build-essential \
      curl \
      ca-certificates \
      git \
      lsb-release \
      rlwrap \
      autoconf \
      automake \
      zlib1g-dev \
      pkg-config && \
    rm -rf /var/lib/apt/lists/* && \
	git clone https://github.com/vcftools/vcftools.git && \
	cd vcftools && \
	git checkout $git_commit && \
	./autogen.sh && \
	./configure && \
	make && \
	make install && \
    cd ../ && \
    rm -rf vcftools && \
    apt-get -qqy autoremove --purge autoconf automake git ca-certificates curl build-essential pkg-config apt-transport-https && \
    apt-get -qqy clean

ENTRYPOINT ["vcftools"]
CMD ["-h"]



