-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (40 loc) · 1.66 KB
/
Dockerfile
File metadata and controls
51 lines (40 loc) · 1.66 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
48
49
50
51
FROM mambaorg/micromamba:2.4.0-ubuntu24.04
LABEL maintainer="Daniel Park <dpark@broadinstitute.org>"
# Install system packages needed for the TSV converter build
USER root
RUN apt-get update && \
apt-get install -y -qq --no-install-recommends \
ca-certificates git wget curl locales \
build-essential python3-dev && \
locale-gen en_US.UTF-8 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER $MAMBA_USER
# Set default locale to en_US.UTF-8
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"
# Install conda dependencies
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes
# Enable conda environment activation for subsequent RUN commands
ARG MAMBA_DOCKERFILE_ACTIVATE=1
# Add manually to PATH for all the image-users who override our entrypoint
ENV PATH="/opt/conda/bin:$PATH"
# Install Asymmetrik TSV converter
ENV ASYMMETRIK_REPO_COMMIT=af2d184da9da9fcc94c6a4d809210868bb8f3034
COPY --chown=$MAMBA_USER:$MAMBA_USER install-tsv_converter.sh /opt/docker/install-tsv_converter.sh
USER root
RUN /opt/docker/install-tsv_converter.sh && \
chown -R $MAMBA_USER:$MAMBA_USER /opt/converter
USER $MAMBA_USER
# Install scripts
COPY --chown=$MAMBA_USER:$MAMBA_USER scripts/* /opt/docker/scripts/
# Configure sra-tools to preserve original quality scores (not simplified Q30)
# See: https://github.com/broadinstitute/ncbi-tools/issues/15
RUN vdb-config --simplified-quality-scores no
# Verify key tools are available
RUN esearch -version && \
samtools --version | head -1 && \
python --version && \
node --version
CMD ["/bin/bash"]