forked from AlexsLemonade/training-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
80 lines (68 loc) · 1.95 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM rocker/tidyverse:4.2.3
LABEL maintainer="[email protected]"
WORKDIR /rocker-build/
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get install dialog apt-utils -y
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
autoconf \
build-essential \
ca-certificates \
curl \
g++ \
gcc \
git \
groff \
less \
libboost-all-dev \
libbz2-dev \
libfftw3-dev \
libglpk-dev \
liblzma-dev \
libmagick++-dev \
libmariadb-dev-compat \
libmariadbd-dev \
libpq-dev \
libproj-dev \
libsqlite-dev \
libssh2-1-dev \
libxml2 \
libxml2-dev \
make \
pandoc \
python3-pip \
time \
unzip \
zlib1g-dev
# AWS
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install
# FastQC
RUN apt-get update && apt-get install -y fastqc
# fastp
ENV FASTP_VERSION 0.20.1
RUN git clone https://github.com/OpenGene/fastp.git
RUN cd fastp && \
git checkout tags/v${FASTP_VERSION} -b v${FASTP_VERSION} && \
make && \
make install
# MultiQC
ENV MULTIQC_VERSION 1.9
RUN pip3 install multiqc==${MULTIQC_VERSION}
# Snakemake
ENV SNAKEMAKE_VERSION 7.25.0
RUN pip3 install snakemake==${SNAKEMAKE_VERSION}
# Salmon
ENV SALMON_VERSION 1.10.0
WORKDIR /usr/local/src
RUN wget --quiet https://github.com/COMBINE-lab/salmon/releases/download/v${SALMON_VERSION}/salmon-${SALMON_VERSION}_linux_x86_64.tar.gz
RUN tar xzf salmon-${SALMON_VERSION}_linux_x86_64.tar.gz && \
rm -f salmon-${SALMON_VERSION}_linux_x86_64.tar.gz && \
ln -s /usr/local/src/salmon-latest_linux_x86_64/bin/salmon /usr/local/bin/salmon
# Use renv for R packages
ENV RENV_CONFIG_CACHE_ENABLED FALSE
RUN R -e "install.packages('renv')"
WORKDIR /usr/local/renv
COPY renv.lock renv.lock
RUN R -e 'renv::consent(provided = TRUE); renv::restore()' && rm -rf ~/.local/share/renv
WORKDIR /home/rstudio