forked from genepi/nf-gwas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (44 loc) · 1.76 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
FROM ubuntu:18.04
COPY environment.yml .
# Install miniconda
RUN apt-get update && apt-get install -y wget
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda
ENV PATH=/opt/conda/bin:${PATH}
RUN conda update -y conda
RUN conda env update -n root -f environment.yml
# Install software
RUN apt-get update && \
apt-get install -y gfortran \
python3 \
zlib1g-dev \
libgomp1 \
procps \
libx11-6
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install jbang (not as conda package available)
WORKDIR "/opt"
RUN wget https://github.com/jbangdev/jbang/releases/download/v0.91.0/jbang-0.91.0.zip && \
unzip -q jbang-*.zip && \
mv jbang-0.91.0 jbang && \
rm jbang*.zip
ENV PATH="/opt/jbang/bin:${PATH}"
# Install genomic-utils
WORKDIR "/opt"
ENV GENOMIC_UTILS_VERSION="v0.3.6"
RUN wget https://github.com/genepi/genomic-utils/releases/download/${GENOMIC_UTILS_VERSION}/genomic-utils.jar
ENV JAVA_TOOL_OPTIONS="-Djdk.lang.Process.launchMechanism=vfork"
COPY ./bin/RegenieLogParser.java ./
RUN jbang export portable --verbose -O=RegenieLogParser.jar RegenieLogParser.java
COPY ./bin/RegenieValidateInput.java ./
RUN jbang export portable -O=RegenieValidateInput.jar RegenieValidateInput.java
# Install regenie (not as conda package available)
WORKDIR "/opt"
ENV REGENIE_VERSION="v3.2.9"
RUN mkdir regenie && cd regenie && \
wget https://github.com/rgcgithub/regenie/releases/download/${REGENIE_VERSION}/regenie_${REGENIE_VERSION}.gz_x86_64_Linux.zip && \
unzip -q regenie_v3.*.gz_x86_64_Linux.zip && \
rm regenie_v3.*.gz_x86_64_Linux.zip && \
mv regenie_v3.*.gz_x86_64_Linux regenie && \
chmod +x regenie
ENV PATH="/opt/regenie/:${PATH}"