-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.broad_sanger_omics
executable file
·53 lines (37 loc) · 1.39 KB
/
Dockerfile.broad_sanger_omics
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
FROM r-base:4.4.1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update --fix-missing
# RUN apt-get install -y --fix-missing --allow-unauthenticated build-essential python3-pip python3-setuptools python3-dev python3-venv libcurl4-openssl-dev libglpk-dev libxml2-dev libpq-dev
RUN apt-get install -y --fix-missing --allow-unauthenticated \
build-essential \
python3-pip \
python3-setuptools \
python3-dev \
python3-venv \
libcurl4-openssl-dev \
libglpk-dev \
libxml2-dev \
libpq-dev \
ca-certificates
RUN python3 -m venv /opt/venv
RUN /opt/venv/bin/pip3 install --upgrade pip
# Set MPLCONFIGDIR to a writable directory
ENV MPLCONFIGDIR=/app/tmp/matplotlib
RUN mkdir -p /app/tmp/matplotlib
ENV PYTHONPATH "${PYTHONPATH}:/app"
WORKDIR /app
ADD build/broad_sanger/01-broadSangerSamples.R ./
ADD build/broad_sanger/02-broadSangerOmics.R ./
ADD build/broad_sanger/02a-broad_sanger_proteomics.py ./
ADD build/broad_sanger/build_samples.sh ./
ADD build/broad_sanger/build_omics.sh ./
ADD build/utils/* ./
ADD build/broad_sanger/build_misc.sh ./
ADD build/broad_sanger/05a_remove_problem_drugs.py ./
ADD build/broad_sanger/05b_separate_datasets.py ./
ADD build/broad_sanger/requirements.txt .
ADD build/broad_sanger/omics_requirements.r .
# installing r libraries
RUN Rscript omics_requirements.r
# installing python libraries
RUN /opt/venv/bin/pip3 install -r requirements.txt