diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d54d6a7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,46 @@ +FROM ubuntu:focal +MAINTAINER Ajay Khanna + +ENV DEBIAN_FRONTEND noninteractive +ENV DEBCONF_NONINTERACTIVE_SEEN true + +# Requirements +RUN apt-get update && \ + # Required build tools + apt-get install -y build-essential cmake && \ + # Need git to fetch the repository + apt-get install -y git && \ + # Clean up + apt-get clean all && \ + rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* && rm -rf /var/tmp/* + +# Clone and build v1.0.0 +RUN cd / && \ + git clone https://github.com/genome/bam-readcount && \ + cd bam-readcount && \ + # For a specific tag enable the git checkout below + git checkout v1.0.0 && \ + rm -rf build && \ + mkdir build && \ + cd build && \ + cmake .. && \ + make + + +FROM ubuntu:focal + +ENV DEBIAN_FRONTEND noninteractive +ENV DEBCONF_NONINTERACTIVE_SEEN true + +LABEL \ + version="v1.0.0" \ + description="Ubuntu Focal with bam-readcount v1.0.0" + +RUN apt-get update + +RUN mkdir -p /opt/bam-readcount/bin +WORKDIR /opt/bam-readcount +COPY --from=0 /bam-readcount/build/bin/bam-readcount /opt/bam-readcount/bin/bam-readcount +RUN ln -s /opt/bam-readcount/bin/bam-readcount /usr/bin/bam-readcount + +ENTRYPOINT ["/usr/bin/bam-readcount"] diff --git a/README.md b/README.md index 6f7293e..1c8551d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ -# docker-bam-readcount -Docker containerization for "bam-readcount" +docker-bam-readcount +==================== + +Docker image for `bam-readcount` + + +Usage +----- + +The Dockerfile sets + + ENTRYPOINT ["/usr/bin/bam-readcount"] + +so the container can be run as an executable. + + +