-
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 #8 from uclahs-cds/bneilsen-Update-To-Use-SAMTools…
…image-base Update to build on top of samtools docker image
- Loading branch information
Showing
2 changed files
with
7 additions
and
13 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,28 +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 HISAT2_VERSION=2.2.1 | ||
ARG SAMTOOLS_VERSION=1.17 | ||
|
||
RUN mamba create -qy -p /usr/local \ | ||
-c defaults \ | ||
-c bioconda \ | ||
-c conda-forge \ | ||
hisat2==${HISAT2_VERSION} \ | ||
samtools==${SAMTOOLS_VERSION} | ||
hisat2==${HISAT2_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 <[email protected]>" \ | ||
LABEL maintainer="Beth Neilsen <[email protected]>" \ | ||
org.opencontainers.image.source=https://github.com/uclahs-cds/docker-HISAT2 |