Skip to content

Commit

Permalink
Added Dockerfile for: bcftools:1.17-23080313
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Aug 17, 2023
1 parent e0b5f98 commit 2e8a49b
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions bcftools/1.17-23080313/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Stage 1: Build Stage
FROM debian:bullseye-20230208-slim as build
ARG BCFTOOLS_VER=1.17

# Install Dependencies
RUN apt-get update && apt-get install -y \
wget \
tar \
ca-certificates \
bzip2 \
autoconf \
automake \
make \
gcc \
perl \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libssl-dev \
libperl-dev \
libgsl0-dev

# Install Bcftools
RUN wget https://github.com/samtools/bcftools/releases/download/${BCFTOOLS_VER}/bcftools-${BCFTOOLS_VER}.tar.bz2 && \
tar jxf bcftools-${BCFTOOLS_VER}.tar.bz2 && \
cd bcftools-${BCFTOOLS_VER} && \
./configure --enable-libgsl && \
make && \
make install && \
cd .. && \
rm bcftools-${BCFTOOLS_VER}.tar.bz2 && \
rm -rf bcftools-${BCFTOOLS_VER}

# Stage 2: Final Stage
FROM debian:bullseye-20230208-slim

# Set labels for metadata
LABEL org.opencontainers.image.title="bcftools"
LABEL org.opencontainers.image.version="1.17"
LABEL org.opencontainers.image.description="Utilities for variant calling and manipulating VCFs and BCFs."
LABEL org.opencontainers.image.citation="Twelve years of SAMtools and BCFtools Petr Danecek, James K Bonfield, Jennifer Liddle, John Marshall, Valeriu Ohan, Martin O Pollard, Andrew Whitwham, Thomas Keane, Shane A McCarthy, Robert M Davies, Heng Li GigaScience, Volume 10, Issue 2, February 2021, giab008, https://doi.org/10.1093/gigascience/giab008"
LABEL org.opencontainers.image.url="https://github.com/samtools/bcftools"
LABEL org.opencontainers.image.licenses="https://github.com/samtools/bcftools/blob/1.17/LICENSE"
LABEL org.opencontainers.image.authors="TGen Containers"
LABEL org.opencontainers.image.authors.email="[email protected]"
LABEL org.opencontainers.image.disclaimer="This container is for academic and non-commercial research and educational purposes only. This container is provided “AS IS” without any warranty of any kind, express or implied. TGen expressly disclaims all warranties of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, and NON-INFRINGEMENT OF THIRD PARTIES’ RIGHTS AND ANY WARRANTIES OR GUARANTEES OF ANY PARTICULAR RESULTS OR OUTCOMES. You assume all risk and liability for any access or use. IN NO EVENT SHALL TGEN OR ANY PROVIDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
LABEL org.opencontainers.image.source="https://github.com/tgen/containers"

# Copy Bcftools Application from the Build Stage to the final image
COPY --from=build /usr/local/ /usr/local

# Install Bcftools Required Packages and Clean Cache
RUN apt-get update && apt-get install --no-install-recommends -y \
libcurl3-gnutls \
libgsl25 && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoclean

# Create Working Directory
WORKDIR /data

0 comments on commit 2e8a49b

Please sign in to comment.