-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (51 loc) · 1.9 KB
/
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
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
52
53
54
55
56
57
58
59
60
61
# Software installation, no database files
FROM condaforge/miniforge3:23.3.1-1
# build and run as root users since micromamba image has 'mambauser' set as the $USER
USER root
# set workdir to default for building; set to /data at the end
WORKDIR /
# Version arguments
# ARG variables only persist during build time
# using latest commit as of 2021/04/29
ARG REFNAAP_COMMIT="b3ad097443233e191d6a211bdbd851583f1ba6ae"
ARG REFNAAP_SRC_URL=https://github.com/jiangweiyao/RefNAAP/archive/${REFNAAP_COMMIT}.zip
# metadata labels
LABEL base.image="condaforge/miniforge3:23.3.1-1"
LABEL dockerfile.version="1"
LABEL software="RefNAAP-wdl"
LABEL software.version=${REFNAAP_COMMIT}
LABEL description="A WDL wrapper of jiangweiyao/RefNAAP for Terra.bio"
LABEL website="https://github.com/jiangweiyao/RefNAAP"
LABEL maintainer1="Inês Mendes"
LABEL maintainer.email1="[email protected]"
# install dependencies; cleanup apt garbage
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
git \
libtiff5 \
unzip \
bsdmainutils \
gcc && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
# get the RefNAAP latest release
RUN wget --quiet "${REFNAAP_SRC_URL}" && \
unzip ${REFNAAP_COMMIT}.zip && \
rm ${REFNAAP_COMMIT}.zip && \
mv -v RefNAAP-${REFNAAP_COMMIT} RefNAAP
# update environment.yml to include the latest fastQC version
RUN sed -i 's/fastqc=0.11.9/fastqc=0.12.1/g' RefNAAP/environment.yml
# install environment.yml from RefNAAP repo
RUN mamba env create -f RefNAAP/environment.yml && \
mamba clean --all -y
# set the environment, add base conda/micromamba bin directory into path
# set locale settings to UTF-8
# set the environment, put new conda env in PATH by default
ENV PATH="/opt/conda/bin:${PATH}" \
LC_ALL=C.UTF-8
ENV PATH="/opt/conda/envs/refnaap/bin:${PATH}"
# add RefNAAP to PATH
ENV PATH="/RefNAAP:${PATH}"
# set final working directory to /data
WORKDIR /data