-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dockerfile for: bcftools:1.17-23080313
- Loading branch information
jenkins
committed
Aug 17, 2023
1 parent
e0b5f98
commit 2e8a49b
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |