-
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.
Merge pull request #5 from uclahs-cds/bneilsen-Update-To-Use-SAMTools…
…image-base Update to use samtools images as base image
- Loading branch information
Showing
2 changed files
with
11 additions
and
14 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
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 |
---|---|---|
@@ -1,27 +1,21 @@ | ||
ARG MINIFORGE_VERSION=23.1.0-3 | ||
ARG SAMTOOLS_VERSION=1.17 | ||
|
||
FROM condaforge/mambaforge:${MINIFORGE_VERSION} AS builder | ||
|
||
# add channels in correct order to avoid missing libcrypto dependency | ||
# https://github.com/bioconda/bioconda-recipes/issues/12100 | ||
ARG BWA_MEM2_VERSION=2.2.1 | ||
ARG SAMTOOLS_VERSION=1.17 | ||
|
||
RUN mamba create -qy -p /usr/local \ | ||
-c defaults \ | ||
-c bioconda \ | ||
-c conda-forge \ | ||
bwa-mem2==${BWA_MEM2_VERSION} \ | ||
samtools==${SAMTOOLS_VERSION} | ||
bwa-mem2==${BWA_MEM2_VERSION} | ||
|
||
FROM ubuntu:20.04 | ||
FROM ghcr.io/uclahs-cds/samtools:${SAMTOOLS_VERSION} | ||
COPY --from=builder /usr/local /usr/local | ||
|
||
# Add a new user/group called bldocker | ||
RUN groupadd -g 500001 bldocker && \ | ||
useradd -r -u 500001 -g bldocker bldocker | ||
|
||
# Change the default user to bldocker from root | ||
USER bldocker | ||
|
||
LABEL maintainer="Beth Neilsen <BNeilsen@mednet.ucla.edu>" \ | ||
LABEL maintainer="Beth Neilsen <BNeilsen@mednet.ucla.edu>" \ | ||
org.opencontainers.image.source=https://github.com/uclahs-cds/docker-BWA-MEM2 |