-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 728 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG MINIFORGE_VERSION=22.9.0-2
FROM condaforge/mambaforge:${MINIFORGE_VERSION} AS builder
# Use mamba to install tools and dependencies into /usr/local
ARG SAMTOOLS_VERSION=1.21
RUN mamba create -qy -p /usr/local \
-c bioconda \
-c conda-forge \
samtools==${SAMTOOLS_VERSION}
# Deploy the target tools into a base image
FROM ubuntu:20.04
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="Rupert Hugh-White <rhughwhite@mednet.ucla.edu>" \
org.opencontainers.image.source=https://github.com/uclahs-cds/docker-SAMtools