Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (42 loc) · 2.11 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (42 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM debian:13-slim as download
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl tar xz-utils bzip2
ARG SAMTOOLS_VERSION=1.20
ARG BCFTOOLS_VERSION=1.20
ARG HTSLIB_VERSION=1.20
RUN curl -fOL https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VERSION}/samtools-${SAMTOOLS_VERSION}.tar.bz2
RUN curl -fOL https://github.com/samtools/bcftools/releases/download/${BCFTOOLS_VERSION}/bcftools-${BCFTOOLS_VERSION}.tar.bz2
RUN curl -fOL https://github.com/samtools/htslib/releases/download/${HTSLIB_VERSION}/htslib-${HTSLIB_VERSION}.tar.bz2
RUN tar xjf samtools-${SAMTOOLS_VERSION}.tar.bz2
RUN tar xjf bcftools-${BCFTOOLS_VERSION}.tar.bz2
RUN tar xjf htslib-${HTSLIB_VERSION}.tar.bz2
FROM debian:13-slim as buildenv
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl tar xz-utils bzip2 build-essential libssl-dev libcurl4-openssl-dev zlib1g-dev libbz2-dev liblzma-dev
FROM buildenv as samtools-build
RUN apt-get install -y libncurses-dev
ARG SAMTOOLS_VERSION=1.20
COPY --from=download /samtools-${SAMTOOLS_VERSION} /samtools-${SAMTOOLS_VERSION}
WORKDIR /samtools-${SAMTOOLS_VERSION}
RUN ./configure && make -j4 && make install
FROM buildenv as bcftools-build
RUN apt-get install -y libncurses-dev
ARG BCFTOOLS_VERSION=1.20
COPY --from=download /bcftools-${BCFTOOLS_VERSION} /bcftools-${BCFTOOLS_VERSION}
WORKDIR /bcftools-${BCFTOOLS_VERSION}
RUN ./configure && make -j4 && make install
FROM buildenv as htslib-build
ARG HTSLIB_VERSION=1.20
COPY --from=download /htslib-${HTSLIB_VERSION} /htslib-${HTSLIB_VERSION}
WORKDIR /htslib-${HTSLIB_VERSION}
RUN ./configure && make -j4 && make install
FROM debian:13-slim
LABEL maintainer="okamura@informationsea.info"
LABEL version="1.1"
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y curl tar xz-utils bzip2 libcurl4 libncursesw6 libssl3 zlib1g liblzma5 libbz2-1.0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=samtools-build /usr/local /usr/local
COPY --from=bcftools-build /usr/local /usr/local
COPY --from=htslib-build /usr/local /usr/local
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]