-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
60 lines (48 loc) · 2.03 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
FROM ubuntu:22.04
COPY environment.yml .
# Install miniconda
RUN apt-get update && apt-get install -y wget
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py39_23.9.0-0-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 && \
conda env update -n root -f environment.yml && \
conda clean --all
# 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.7"
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.4"
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_${REGENIE_VERSION}.gz_x86_64_Linux.zip && \
rm regenie_${REGENIE_VERSION}.gz_x86_64_Linux.zip && \
mv regenie_${REGENIE_VERSION}.gz_x86_64_Linux regenie && \
chmod +x regenie
ENV PATH="/opt/regenie/:${PATH}"
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update